Don't push to submodules on "./sync-all push"
authorIan Lynagh <ian@well-typed.com>
Fri, 15 Feb 2013 14:12:46 +0000 (14:12 +0000)
committerIan Lynagh <ian@well-typed.com>
Fri, 15 Feb 2013 14:13:39 +0000 (14:13 +0000)
A standard git push doesn't make sense for them

sync-all

index b24a832..898ce66 100755 (executable)
--- 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;