Web lists-archives.com

Re: [PATCH] run-command.c: print env vars when GIT_TRACE is set

Am 11.01.2018 um 11:07 schrieb Jeff King:
The output for a single command is pretty shell-like due to the quoting:

   $ GIT_TRACE=1 ./git upload-pack . >/dev/null
   [...]run_command: 'git-upload-pack' '.'

You could copy and paste that to a shell if you wanted.  And with
environment variables, that remains so:

   $ GIT_TRACE=1 ./git ls-remote https://github.com/git/git >/dev/null
   [...]run_command: 'GIT_DIR=.git' 'git-remote-https' 'https://[...]'

Not quite, though. For variable assignments to be recognized as such, the name and equal sign must not be quoted:

  GIT_DIR='.git' 'git-remote-https' 'https://[...]'

-- Hannes