summaryrefslogtreecommitdiff
path: root/t/t4202-log.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-12 16:59:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-04-12 16:59:59 (GMT)
commit7bec7f50ae10ce760160ed4d11e47cd0494cb8d7 (patch)
tree6addfbd693a781a833375f6cf8536ae1a034460f /t/t4202-log.sh
parenta3bb8ca74ca01859f5eed962256faea737d4db7c (diff)
downloadgit-7bec7f50ae10ce760160ed4d11e47cd0494cb8d7.zip
git-7bec7f50ae10ce760160ed4d11e47cd0494cb8d7.tar.gz
git-7bec7f50ae10ce760160ed4d11e47cd0494cb8d7.tar.bz2
t3404: use write_script
The test uses hardcoded #!/bin/sh to create a pre-commit hook script. Because the generated script uses $(command substitution), which is not supported by /bin/sh on some platforms (e.g. Solaris), the resulting pre-commit always fails. Which is not noticeable as the test that uses the hook is about checking the behaviour of the command when the hook fails ;-), but nevertheless it is not testing what we wanted to test. Use write_script so that the resulting script is run under the same shell our scripted Porcelain commands are run, which must support the necessary $(construct). Helped-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4202-log.sh')
0 files changed, 0 insertions, 0 deletions