Commit ccce9fe6 authored by's avatar
Browse files

When pulling, only 'fetch' in submodules

parent 8fd3f3ce
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment