Code

remote: fix set-branches usage
authorJunio C Hamano <gitster@pobox.com>
Mon, 7 Nov 2011 05:12:59 +0000 (21:12 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Nov 2011 05:15:30 +0000 (21:15 -0800)
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>
builtin/remote.c

index c4d17b52bc7725c1e1c77e1ce3e2379729a924c4..06741ecde4ad5feed04ae1b7eaa462735f40a672 100644 (file)
@@ -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;