cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject cordova-lib git commit: CB-7610 Fix `cordova plugin add d:\path` (or any other non-c: path) (close #135)
Date Tue, 23 Dec 2014 16:56:35 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master 6ce4ff1b1 -> c6870a1b5


CB-7610 Fix `cordova plugin add d:\path` (or any other non-c: path) (close #135)


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/c6870a1b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/c6870a1b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/c6870a1b

Branch: refs/heads/master
Commit: c6870a1b54719662e531e5dab38beeb6213794f8
Parents: 6ce4ff1
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Dec 23 11:55:28 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Dec 23 11:55:28 2014 -0500

----------------------------------------------------------------------
 cordova-lib/src/plugman/fetch.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/c6870a1b/cordova-lib/src/plugman/fetch.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/plugman/fetch.js b/cordova-lib/src/plugman/fetch.js
index 046356a..b9492f2 100644
--- a/cordova-lib/src/plugman/fetch.js
+++ b/cordova-lib/src/plugman/fetch.js
@@ -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'));


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message