mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
remote: fix set-branches usage
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>
This commit is contained in:
parent
3d8b69495f
commit
656cdf0c9e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user