]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t7502-commit.sh
t6030 (bisect): work around Mac OS X "ls"
[git.git] / t / t7502-commit.sh
index c25eff9e468acd628cf0a5e7a0968c801396e9f8..4f2682ea800df599d720108ef8f17de06fedc06c 100755 (executable)
@@ -228,10 +228,12 @@ EOF
 
 test_expect_success 'a SIGTERM should break locks' '
        echo >>negative &&
-       "$SHELL_PATH" -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
+         GIT_EDITOR=.git/FAKE_EDITOR
+         export GIT_EDITOR
+         exec git commit -a'\'' &&
+       test ! -f .git/index.lock
 '
 
 rm -f .git/MERGE_MSG .git/COMMIT_EDITMSG