diff options
author | Simon Marlow <marlowsd@gmail.com> | 2011-04-04 14:13:54 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2011-04-04 14:20:15 +0100 |
commit | 577c006de0364a9c313b40cd00e744af1908c8e3 (patch) | |
tree | ba5ea9deb9bca77ca1410c7b45c2e94b837d5626 /sync-all | |
parent | be895313ba42d0bff295a2d4dbc1c5b388a3e760 (diff) | |
download | haskell-577c006de0364a9c313b40cd00e744af1908c8e3.tar.gz |
Add "./sync-all set-push"
Use like this:
./sync-all -r me@darcs.haskell.org:/home/darcs set-push
to set the default repo to push to (in remotes/origin) for each of
the sub-repos.
Diffstat (limited to 'sync-all')
-rwxr-xr-x | sync-all | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -241,6 +241,10 @@ sub scmall { elsif ($command =~ /^set-origin$/) { @scm_args = ("remote", "set-url", "origin", $path); } + elsif ($command =~ /^set-push$/) { + @scm_args = ("remote", "set-url", "--push", "origin", $path); + print "foo\n", @scm_args; + } elsif ($command =~ /^fetch$/) { @scm_args = ("fetch", "origin"); } @@ -342,6 +346,7 @@ Supported commands: * fetch * send * set-origin + * set-push * new Available package-tags are: |