summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-04-01 14:11:01 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-04-01 14:11:01 +0100
commitd94579a594823b44334e81f0eb38e9a45945796d (patch)
treeba291e5c60de754aa2cfd25d7a9b8d087c569c7a /sync-all
parent7978575e0e3b3b4b8b838b88750fc0b4aef90bc1 (diff)
downloadhaskell-d94579a594823b44334e81f0eb38e9a45945796d.tar.gz
add a "set-origin" command
Use it like this ./sync-all -r http://darcs.haskell.org/ghc-git set-origin to set the origin branches of all sub-repos to point to the appropriate repo within the http://darcs.haskell.org/ghc-git tree.
Diffstat (limited to 'sync-all')
-rwxr-xr-xsync-all4
1 files changed, 4 insertions, 0 deletions
diff --git a/sync-all b/sync-all
index 6f786cd1aa..7bb8016354 100755
--- a/sync-all
+++ b/sync-all
@@ -238,6 +238,9 @@ sub scmall {
or ($scm eq "git" and "send-email"));
$want_remote_repo = 1;
}
+ elsif ($command =~ /^set-origin$/) {
+ @scm_args = ("remote", "set-url", "origin", $path);
+ }
else {
die "Unknown command: $command";
}
@@ -331,6 +334,7 @@ Supported commands:
* --complete
* --partial
* send
+ * set-origin
Available package-tags are:
END