From: Junio C Hamano Date: Wed, 4 Jun 2008 19:10:01 +0000 (-0700) Subject: t7502: honor SHELL_PATH X-Git-Tag: v1.5.6-rc2~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de5825cc829a5d535de726eb7e5af45c0a3b88ce;p=git.git t7502: honor SHELL_PATH Signed-off-by: Junio C Hamano --- diff --git a/t/t7502-commit.sh b/t/t7502-commit.sh index a5801df8b..ed871a6b4 100755 --- a/t/t7502-commit.sh +++ b/t/t7502-commit.sh @@ -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 <>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