[commit: ghc] master: When pulling, only 'fetch' in submodules (ccce9fe)
Ian Lynagh <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.ghc |
|---|---|
| Message-ID | <[email protected]> |
Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master http://hackage.haskell.org/trac/ghc/changeset/ccce9fe6d3f5508412d3229151763355c440d27d >--------------------------------------------------------------- commit ccce9fe6d3f5508412d3229151763355c440d27d Author: Ian Lynagh <[email protected]> Date: Sun Dec 2 17:44:04 2012 +0000 When pulling, only 'fetch' in submodules >--------------------------------------------------------------- sync-all | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/sync-all b/sync-all index 04bbd19..4a8387d 100755 --- a/sync-all +++ b/sync-all @@ -379,7 +379,16 @@ sub scmall { scm ($localpath, $scm, "push", @args); } elsif ($command eq "pull") { - scm ($localpath, $scm, "pull", @args); + my $realcmd; + if ($remotepath eq "-") { + # Only fetch for the submodules. "git submodule update" + # will take care of making us point to the right commit. + $realcmd = "fetch"; + } + else { + $realcmd = "pull"; + } + scm ($localpath, $scm, $realcmd, @args); } elsif ($command eq "new-workdir") { gitNewWorkdir ($localpath, @args);