Skip to content

Commit

Permalink
t7502: honor SHELL_PATH
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jun 4, 2008
1 parent adf60f1 commit de5825c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t7502-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ test_expect_success 'do not fire editor in the presence of conflicts' '
'

pwd=`pwd`
cat > .git/FAKE_EDITOR << EOF
#! /bin/sh
cat >.git/FAKE_EDITOR <<EOF
#! $SHELL_PATH
# kill -TERM command added below.
EOF

test_expect_success 'a SIGTERM should break locks' '
echo >>negative &&
sh -c '\''
"$SHELL_PATH" -c '\''
echo kill -TERM $$ >> .git/FAKE_EDITOR
GIT_EDITOR=.git/FAKE_EDITOR exec git commit -a'\'' && exit 1 # should fail
! test -f .git/index.lock
Expand Down

0 comments on commit de5825c

Please sign in to comment.