Commit d94579a5 authored by Simon Marlow's avatar Simon Marlow
Browse files

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.
parent 7978575e
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment