public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: "SZEDER Gábor" <szeder.dev@gmail•com>
To: Jeffrey Walton <noloader@gmail•com>
Cc: Git List <git@vger•kernel.org>
Subject: Re: How to see command line arguments passed to program in core.sshcommand?
Date: Mon, 23 Sep 2019 11:24:17 +0200	[thread overview]
Message-ID: <20190923092417.GF10866@szeder.dev> (raw)
In-Reply-To: <CAH8yC8nVBcBntJVZ6eV+YxoBpZRx+ecC2JxGuunhxNbY2cGyFQ@mail.gmail.com>

On Sun, Sep 22, 2019 at 11:17:59PM -0400, Jeffrey Walton wrote:
> 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.


  reply	other threads:[~2019-09-23  9:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-23  3:17 How to see command line arguments passed to program in core.sshcommand? Jeffrey Walton
2019-09-23  9:24 ` SZEDER Gábor [this message]
2019-09-23 17:18   ` Jeffrey Walton
2019-09-23 18:38     ` SZEDER Gábor
2019-09-24 17:12 ` Derrick Stolee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190923092417.GF10866@szeder.dev \
    --to=szeder.dev@gmail$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=noloader@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox