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

[PATCH] bash: don't offer remote transport helpers as subcommands

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Jan 22, 2010, 10:54 UTC
Message-ID
<1264157691-27187-1-git-send-email-szeder@ira.uka.de>

Since commits a2d725b7 (Use an external program to implement fetching with curl, 2009-08-05) and c9e388bb (Make the "traditionally-supported" URLs a special case, 2009-09-03) remote transport helpers like 'remote-ftp' and 'remote-curl' are offered by the completion script as available subcommands. Not good, since they are helpers, therefore should not be offered, so filter them out.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---

Maybe maint-worthy? 1.6.5 was the first release with this bug, but nobody complained since then.

 contrib/completion/git-completion.bash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 9651720..7def62c 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -568,6 +568,7 @@ __git_list_porcelain_commands ()
 		read-tree)        : plumbing;;
 		receive-pack)     : plumbing;;
 		reflog)           : plumbing;;
+		remote-*)         : transport;;
 		repo-config)      : deprecated;;
 		rerere)           : plumbing;;
 		rev-list)         : plumbing;;
-- 
1.6.6.1.361.gc5121
Next: Shawn O. Pearce
Message 1 of 2 in “bash: don't offer remote transport helpers as subcommands”
  1. bash: don't offer remote transport helpers as subcommandsSZEDER Gábor, Jan 22, 2010
  2. Shawn O. PearceJan 28, 2010

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.