diff options
author | Simon Marlow <marlowsd@gmail.com> | 2012-12-03 09:35:37 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2012-12-03 09:40:51 +0000 |
commit | 3a40456f9befa1f3c4a83480f76f44f2babfafb9 (patch) | |
tree | f8b9d22a2e53bde1db88184e5efc26ac74f1d73f /sync-all | |
parent | 31d771bec93b17813b03e7a72a586e1f401ef240 (diff) | |
download | haskell-3a40456f9befa1f3c4a83480f76f44f2babfafb9.tar.gz |
Make "sync-all pull --rebase" work
By filtering out the --rebase when fetching submodules
Diffstat (limited to 'sync-all')
-rwxr-xr-x | sync-all | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -380,15 +380,19 @@ sub scmall { } elsif ($command eq "pull") { my $realcmd; + my @realargs; if ($remotepath eq "-") { # Only fetch for the submodules. "git submodule update" # will take care of making us point to the right commit. $realcmd = "fetch"; + # we like "sync-all pull --rebase" to work: + @realargs = grep(!/--rebase/,@args); } else { $realcmd = "pull"; + @realargs = @args; } - scm ($localpath, $scm, $realcmd, @args); + scm ($localpath, $scm, $realcmd, @realargs); } elsif ($command eq "new-workdir") { gitNewWorkdir ($localpath, @args); |