summaryrefslogtreecommitdiff
path: root/t/t9131-git-svn-empty-symlink.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-03-13 04:50:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-13 06:24:34 (GMT)
commit025232e8aa4b56d450079528fcfbff53da3e7fa4 (patch)
tree1e8e8162515f4acf16139411093969635df2b1e2 /t/t9131-git-svn-empty-symlink.sh
parentda706545f7a1fa97cd8d9cf40659ab2a167be7c0 (diff)
downloadgit-025232e8aa4b56d450079528fcfbff53da3e7fa4.zip
git-025232e8aa4b56d450079528fcfbff53da3e7fa4.tar.gz
git-025232e8aa4b56d450079528fcfbff53da3e7fa4.tar.bz2
t: redirect stderr GIT_TRACE to descriptor 4
If you run a test script like: GIT_TRACE=1 ./t0061-run-command.sh you may get test failures, because some tests capture and check the stderr output from git commands (and with GIT_TRACE set to 1, the trace output will be included there). When we see GIT_TRACE set like this, we print a warning to the user. However, we can do even better than that by just pointing it to descriptor 4, which all tests leave connected to the test script's stderr. That's likely what the user intended (and any scripts that do want to see GIT_TRACE output will set GIT_TRACE themselves). Not only does this avoid false negatives in the tests, but it means the user will actually see trace output for git calls that redirect their stderr (whereas before, it was sometimes confusingly buried in a file). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9131-git-svn-empty-symlink.sh')
0 files changed, 0 insertions, 0 deletions