summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-02-22 08:46:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-02-22 22:19:28 (GMT)
commit8c33b4cf67f47ee46fe0984751fd40c4cf7cf392 (patch)
tree6d9e4d65b289b81558de3a57f9adc16a979742d6 /git-svn.perl
parent2d3ca21677597902f66bf2f2b2cf1b4a623f1e4f (diff)
downloadgit-8c33b4cf67f47ee46fe0984751fd40c4cf7cf392.zip
git-8c33b4cf67f47ee46fe0984751fd40c4cf7cf392.tar.gz
git-8c33b4cf67f47ee46fe0984751fd40c4cf7cf392.tar.bz2
tests: Fix race condition in t7006-pager
Pagers that do not consume their input are dangerous: for example, $ GIT_PAGER=: git log $ echo $? 141 $ The only reason these tests were able to work before was that 'git log' would write to the pipe (and not fill it) before the pager had time to terminate and close the pipe. Fix it by using a program that consumes its input, namely wc (as suggested by Johannes). Reported-by: Johannes Sixt <j.sixt@viscovery.net> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-svn.perl')
0 files changed, 0 insertions, 0 deletions