]> git.ipfire.org Git - thirdparty/git.git/commit - run-command.c
run-command.c: print env vars in trace_run_command()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 18 Jan 2018 09:45:11 +0000 (16:45 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jan 2018 18:49:20 +0000 (10:49 -0800)
commitc61a975df1d3d5e448622f951e6dd584ee21ebf3
tree375821474938a1f288c2c40e07b49ed0590ea7cc
parent21dfc5e08fec74ded0ab4206bca0927a38feb882
run-command.c: print env vars in trace_run_command()

Occasionally submodule code could execute new commands with GIT_DIR set
to some submodule. GIT_TRACE prints just the command line which makes it
hard to tell that it's not really executed on this repository.

Print the env delta (compared to parent environment) in this case.

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c
t/helper/test-run-command.c
t/t0061-run-command.sh