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

Re: [BUG] GIT_SSH_COMMAND is not being decomposed

From
Johannes Sixt <j6t@kdbg.org>
Date
Apr 15, 2019, 21:30 UTC
Message-ID
<275443bc-ec87-09a0-d4c5-cc3bb86be105@kdbg.org>
In-Reply-To
<004d01d4f3c0$3ff358d0$bfda0a70$@nexbridge.com>
Am 15.04.19 um 21:20 schrieb Randall S. Becker:
Show 12 quoted lines
> What is strange is that GIT_SSH_COMMAND='/usr/bin/ssh -v' should not
> execute if we are just looking at an object path. It should be broken
> into '/usr/bin/ssh' and '-v' otherwise spawn* or exec* will not
> execute it. I'm still trying to understand why I can successfully do
> things like the following:>
> $ GIT_SSH_COMMAND="ssh -i ~/.ssh/myid" git fetch
> 
> on virtually any platform at my disposal (Windows, Ubuntu, MacOS, the
> older NonStop variant), and have that work with no problem. Somewhere
> after get_ssh_command(), the command is being interpreted it its
> parts either as a shell or something else (still trying to find
> that).

Have a look at fill_ssh_args() and determine_ssh_variant() in connect.c. Quite a lot is going on there. I don't see immediately why it doesn't follow the usual logic in your case, though.

-- Hannes
Previous: Junio C Hamano
Message 10 of 10 in “[BUG] GIT_SSH_COMMAND is not being decomposed”
  1. Randall S. BeckerApr 13, 2019
  2. Ævar Arnfjörð BjarmasonApr 13, 2019
  3. Randall S. BeckerApr 13, 2019
  4. SZEDER GáborApr 13, 2019
  5. Randall S. BeckerApr 14, 2019
  6. Randall S. BeckerApr 15, 2019
  7. Andreas SchwabApr 15, 2019
  8. Randall S. BeckerApr 15, 2019
  9. Junio C HamanoApr 16, 2019
  10. Johannes SixtApr 15, 2019

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.