diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-12-02 17:44:04 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-12-02 17:44:04 +0000 |
commit | ccce9fe6d3f5508412d3229151763355c440d27d (patch) | |
tree | f6c6263fe2a5da2e30a416b750a20d6f61268fde /sync-all | |
parent | 8fd3f3cebaccd270e10bc7b288a169ea9d0d5e29 (diff) | |
download | haskell-ccce9fe6d3f5508412d3229151763355c440d27d.tar.gz |
When pulling, only 'fetch' in submodules
Diffstat (limited to 'sync-all')
-rwxr-xr-x | sync-all | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); |