summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-12-03 09:35:37 +0000
committerSimon Marlow <marlowsd@gmail.com>2012-12-03 09:40:51 +0000
commit3a40456f9befa1f3c4a83480f76f44f2babfafb9 (patch)
treef8b9d22a2e53bde1db88184e5efc26ac74f1d73f /sync-all
parent31d771bec93b17813b03e7a72a586e1f401ef240 (diff)
downloadhaskell-3a40456f9befa1f3c4a83480f76f44f2babfafb9.tar.gz
Make "sync-all pull --rebase" work
By filtering out the --rebase when fetching submodules
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all6
1 files changed, 5 insertions, 1 deletions
diff --git a/sync-all b/sync-all
index efb84a614d..9aa40d5fb8 100755
--- a/sync-all
+++ b/sync-all
@@ -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);