git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] remote: fix remote set-url usage

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 7, 2011, 05:12 UTC
Message-ID
<7vfwi04itx.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1320637017-30863-1-git-send-email-felipe.contreras@gmail.com>
Felipe Contreras <felipe.contreras@gmail.com> writes:
Show 7 quoted lines
> Bad copy-paste.
>
> Otherwise the help would be for a different command:
>  git remote set-url --help
>
> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
> ---
Doesn't the same thing apply to set-branches?
 builtin/remote.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin/remote.c b/builtin/remote.c
index c4d17b5..06741ec 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -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;
 
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “remote: fix remote set-url usage”
  1. remote: fix remote set-url usageFelipe Contreras, Nov 7, 2011
  2. Junio C HamanoNov 7, 2011
  3. Junio C HamanoNov 7, 2011
  4. Junio C HamanoNov 7, 2011
  5. Jonathan NiederNov 7, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.