summaryrefslogtreecommitdiff
path: root/t/t6050-replace.sh
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2018-05-07 12:04:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-09 02:21:53 (GMT)
commit4ed79d52039d66604afae065bdf2698eb56ce439 (patch)
treef393269f63d320bb15bff724f89040227df39c38 /t/t6050-replace.sh
parent468165c1d8a442994a825f3684528361727cd8c0 (diff)
downloadgit-4ed79d52039d66604afae065bdf2698eb56ce439.zip
git-4ed79d52039d66604afae065bdf2698eb56ce439.tar.gz
git-4ed79d52039d66604afae065bdf2698eb56ce439.tar.bz2
t6050-replace: don't disable stdin for the whole test script
The test script 't6050-replace.sh' starts off with redirecting the whole test script's stdin from /dev/null. This redirection has been there since the test script was introduced in a3e8267225 (replace_object: add a test case, 2009-01-23), but the commit message doesn't explain why it was deemed necessary. AFAICT, it has never been necessary, and t6050 runs just fine and succeeds even without it, not only the current version but past versions as well. Besides being unnecessary, this redirection is also harmful, as it prevents the test helper functions 'test_pause' and 'debug' from working properly in t6050, because we can't enter any commands to the shell and the debugger, respectively. So let's remove that redirection. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6050-replace.sh')
-rwxr-xr-xt/t6050-replace.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/t/t6050-replace.sh b/t/t6050-replace.sh
index c630aba..199fbc7 100755
--- a/t/t6050-replace.sh
+++ b/t/t6050-replace.sh
@@ -4,8 +4,6 @@
#
test_description='Tests replace refs functionality'
-exec </dev/null
-
. ./test-lib.sh
. "$TEST_DIRECTORY/lib-gpg.sh"