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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux