@matheusbsbs / matheus-bagliano / commits / de5825cc82
Fork 0

t7502: honor SHELL_PATH

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jun 4, 2008 at 12:10 UTC de5825cc829a5d535de726eb7e5af45c0a3b88ce
1 file changed +3 -3
t/t7502-commit.sh
+3 -3
@@ -217,14 +217,14 @@ test_expect_success 'do not fire editor in the presence of conflicts' '
217 '
218
219 pwd=`pwd`
220 -cat > .git/FAKE_EDITOR << EOF
221 -#! /bin/sh
220 +cat >.git/FAKE_EDITOR <<EOF
221 +#! $SHELL_PATH
222 # kill -TERM command added below.
223 EOF
224
225 test_expect_success 'a SIGTERM should break locks' '
226 echo >>negative &&
227 - sh -c '\''
227 + "$SHELL_PATH" -c '\''
228 echo kill -TERM $$ >> .git/FAKE_EDITOR
229 GIT_EDITOR=.git/FAKE_EDITOR exec git commit -a'\'' && exit 1 # should fail
230 ! test -f .git/index.lock