Skip to content

Commit

Permalink
Add "remote set-branches" support to sync-all
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Lynagh committed Sep 4, 2012
1 parent 7b11baa commit 7d847e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sync-all
Expand Up @@ -209,7 +209,10 @@ sub scmall {
}
if (@_ < 1) { help(1); }
$subcommand = shift;
if ($subcommand ne 'add' && $subcommand ne 'rm' && $subcommand ne 'set-url') {
if ($subcommand ne 'add' &&
$subcommand ne 'rm' &&
$subcommand ne 'set-branches' &&
$subcommand ne 'set-url') {
help(1);
}
while (@_ > 0 && $_[0] =~ /^-/) {
Expand Down Expand Up @@ -398,6 +401,8 @@ sub scmall {
@scm_args = ("remote", "add", $branch_name, $path);
} elsif ($subcommand eq 'rm') {
@scm_args = ("remote", "rm", $branch_name);
} elsif ($subcommand eq 'set-branches') {
@scm_args = ("remote", "set-branches", $branch_name);
} elsif ($subcommand eq 'set-url') {
@scm_args = ("remote", "set-url", $branch_name, $path);
}
Expand Down

0 comments on commit 7d847e8

Please sign in to comment.