cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/2] git commit: Make repo-update use "git remote update" instead of "git fetch" (faster)
Date Thu, 24 Apr 2014 17:52:11 GMT
Repository: cordova-coho
Updated Branches:
  refs/heads/master 3da926b21 -> 608e06d93


Make repo-update use "git remote update" instead of "git fetch" (faster)


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

Branch: refs/heads/master
Commit: dcf5585dbcaa243c672d7a2c088e13d22e53a8ea
Parents: 3da926b
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Apr 24 13:51:35 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Apr 24 13:51:35 2014 -0400

----------------------------------------------------------------------
 src/repo-update.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/dcf5585d/src/repo-update.js
----------------------------------------------------------------------
diff --git a/src/repo-update.js b/src/repo-update.js
index d887e4f..7e74dd9 100644
--- a/src/repo-update.js
+++ b/src/repo-update.js
@@ -85,9 +85,8 @@ function *updateRepos(repos, branches, noFetch) {
             if (repo.svn) {
                 return;
             }
-            // TODO - can these be combined? Fetching with --tags seems to not pull in changes...
-            yield executil.execHelper(executil.ARGS('git fetch --progress ' + repo.remoteName));
-            yield executil.execHelper(executil.ARGS('git fetch --progress --tags ' + repo.remoteName));
+            // Note: this does the same as git fetch --tags origin && git fetch origin
+            yield executil.execHelper(executil.ARGS('git remote update ', repo.remoteName));
         });
     }
 


Mime
View raw message