Skip to content

Commit

Permalink
remote: fix set-branches usage
Browse files Browse the repository at this point in the history
Bad copy-paste.

Otherwise "git remote set-branches" without necessary argument
will result in an error message and help for set-url subcommand.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Nov 7, 2011
1 parent 3d8b694 commit 656cdf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ static int set_branches(int argc, const char **argv)
builtin_remote_setbranches_usage, 0);
if (argc == 0) {
error("no remote specified");
usage_with_options(builtin_remote_seturl_usage, options);
usage_with_options(builtin_remote_setbranches_usage, options);
}
argv[argc] = NULL;

Expand Down

0 comments on commit 656cdf0

Please sign in to comment.