[Bps-public-commit] git-sync branch, master, updated. 8ec11906c249e38ca7341b4d7f21275d97a2e08a

Alex M Vandiver alexmv at bestpractical.com
Fri Dec 4 14:34:06 EST 2009


The branch, master has been updated
       via  8ec11906c249e38ca7341b4d7f21275d97a2e08a (commit)
      from  0761ebd3b3b9de6e3520551250953c751e843ae3 (commit)

Summary of changes:
 git-sync |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 8ec11906c249e38ca7341b4d7f21275d97a2e08a
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Dec 3 23:20:30 2009 -0500

    Switch to `git fetch --all --prune` from `git remote update --prune`
    
    Git internally rewrites the latter into the former; save a step and call it directly.

diff --git a/git-sync b/git-sync
index 45c9de6..416e79e 100755
--- a/git-sync
+++ b/git-sync
@@ -425,7 +425,7 @@ sub update {
          # git-svn doesn't work with $repo->command, hate
         `git --git-dir @{[$repo->repo_path]} svn fetch -q` unless $pretend;
     } else {
-        my $ret = eval { $repo->command( [qw/remote update --prune/], STDERR => 0 ); } unless $pretend;
+        my $ret = eval { $repo->command( [qw/fetch --all --prune --quiet/], STDERR => 0 ); } unless $pretend;
     }
     kill $? & 127, $$ if $? & 127; # Propagate the signal it died with, if any
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list