You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2016/03/08 19:40:28 UTC

cordova-coho git commit: Prefer using github remote for repo-update

Repository: cordova-coho
Updated Branches:
  refs/heads/master 85862b007 -> e5b8e4af2


Prefer using github remote for repo-update


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

Branch: refs/heads/master
Commit: e5b8e4af2399a9378793fe568c68323d1c18aae1
Parents: 85862b0
Author: Nikhil Khandelwal <ni...@microsoft.com>
Authored: Tue Mar 8 09:22:35 2016 -0800
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Tue Mar 8 09:22:35 2016 -0800

----------------------------------------------------------------------
 src/repo-update.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/e5b8e4af/src/repo-update.js
----------------------------------------------------------------------
diff --git a/src/repo-update.js b/src/repo-update.js
index 59a371c..6c9da8c 100644
--- a/src/repo-update.js
+++ b/src/repo-update.js
@@ -171,11 +171,14 @@ module.exports.updateRepos = updateRepos;
 
 function *determineApacheRemote(repo) {
     var fields = (yield executil.execHelper(executil.ARGS('git remote -v'), true)).split(/\s+/);
+    
     var ret = null;
+    
+    // prefer github - in particular, ASF remote does not respond well to repo-update command. 
     [
+      'github.com/apache/',
       'git-wip-us.apache.org/repos/asf/',
       'git.apache.org/',
-      'github.com/apache/',
     ].forEach(function(validRepo) {
         for (var i = 1; i < fields.length; i += 3) {
             if (!ret && fields[i].indexOf(validRepo + repo.repoName) != -1) {


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