Code

remote: fix remote set-url usage
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 7 Nov 2011 03:36:57 +0000 (05:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Nov 2011 05:16:34 +0000 (21:16 -0800)
Bad copy-paste.

Otherwise the help text for "git remote set-url --help" would show help
for "git remote update" subcommand.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-remote.c

index 277765b864202b2b6f20069e0cb3f95eaef4fcaa..c696c2cb9e0ebe190a6f2c7fb4592f0be276efdd 100644 (file)
@@ -1286,7 +1286,7 @@ static int set_url(int argc, const char **argv)
                            "delete URLs"),
                OPT_END()
        };
-       argc = parse_options(argc, argv, NULL, options, builtin_remote_update_usage,
+       argc = parse_options(argc, argv, NULL, options, builtin_remote_seturl_usage,
                             PARSE_OPT_KEEP_ARGV0);
 
        if (add_mode && delete_mode)