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

Re: How to see command line arguments passed to program in core.sshcommand?

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Sep 23, 2019, 09:24 UTC
Message-ID
<20190923092417.GF10866@szeder.dev>
In-Reply-To
<CAH8yC8nVBcBntJVZ6eV+YxoBpZRx+ecC2JxGuunhxNbY2cGyFQ@mail.gmail.com>
On Sun, Sep 22, 2019 at 11:17:59PM -0400, Jeffrey Walton wrote:
Show 5 quoted lines
> I need to spy the command line arguments being passed around, but I
> have not been able to do so. 'git clone -verbose' is ineffective, and
> -vvv is rejected as an unknown option.
> 
> How do I see command line arguments passed to the program in core.sshcommand?
Try
  GIT_TRACE=1 git <rest of the command>
and, among other things, you'll see something like
  11:20:12.013785 run-command.c:663       trace: run_command: unset GIT_PREFIX; ssh git@github.com 'git-receive-pack '\''/szeder/git'\'''
in its output (this was for a 'git push').
See 'man git' for possible values for GIT_TRACE.
Previous: Jeffrey WaltonNext: Jeffrey Walton
Message 2 of 5 in “How to see command line arguments passed to program in core.sshcommand?”
  1. Jeffrey WaltonSep 23, 2019
  2. SZEDER GáborSep 23, 2019
  3. Jeffrey WaltonSep 23, 2019
  4. SZEDER GáborSep 23, 2019
  5. Derrick StoleeSep 24, 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.