Skip to content

Commit

Permalink
CB-7610 Fix cordova plugin add d:\path (or any other non-c: path) (c…
Browse files Browse the repository at this point in the history
…lose #135)
  • Loading branch information
agrieve committed Dec 23, 2014
1 parent 6ce4ff1 commit c6870a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cordova-lib/src/plugman/fetch.js
Expand Up @@ -73,7 +73,7 @@ function fetchPlugin(plugin_src, plugins_dir, options) {
}

// If it looks like a network URL, git clone it.
if ( uri.protocol && uri.protocol != 'file:' && uri.protocol != 'c:' && !plugin_src.match(/^\w+:\\/)) {
if ( uri.protocol && uri.protocol != 'file:' && uri.protocol[1] != ':' && !plugin_src.match(/^\w+:\\/)) {
events.emit('log', 'Fetching plugin "' + plugin_src + '" via git clone');
if (options.link) {
return Q.reject(new CordovaError('--link is not supported for git URLs'));
Expand Down

0 comments on commit c6870a1

Please sign in to comment.