]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t7502-commit.sh
t7502: honor SHELL_PATH
[git.git] / t / t7502-commit.sh
index a5801df8b68f654a0a8fa972b3fc0acc75fe071d..ed871a6b4d7963f520b994f4d378b02194d69f9e 100755 (executable)
@@ -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