summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-02-15 14:12:46 +0000
committerIan Lynagh <ian@well-typed.com>2013-02-15 14:13:39 +0000
commit192789a4c4a4388e39d1652a62c09a3715637ead (patch)
treee6c4ddb6192ac2b58eb6a88b308119964d7e10d8 /sync-all
parent536ee09fc4bcf2c8084bbbcb5c7a62025e31a7a6 (diff)
downloadhaskell-192789a4c4a4388e39d1652a62c09a3715637ead.tar.gz
Don't push to submodules on "./sync-all push"
A standard git push doesn't make sense for them
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all8
1 files changed, 7 insertions, 1 deletions
diff --git a/sync-all b/sync-all
index b24a8327cf..898ce66d06 100755
--- a/sync-all
+++ b/sync-all
@@ -372,7 +372,13 @@ sub scmall {
scm ($localpath, $scm, "commit", @args);
}
elsif ($command eq "push") {
- scm ($localpath, $scm, "push", @args);
+ # We don't automatically push to the submodules. If you want
+ # to push to them then you need to use a special command, as
+ # described on
+ # http://hackage.haskell.org/trac/ghc/wiki/Repositories/Upstream
+ if ($remotepath ne "-") {
+ scm ($localpath, $scm, "push", @args);
+ }
}
elsif ($command eq "pull") {
my $realcmd;