Code

Revert "Adapt tutorial to cygwin and add test case"
[git.git] / git-commit.sh
index 5e85b54645edbbdb5e2ba82573ca25d37feacfd1..591fcdceb1a3d47ce311bda0b3a81b62e99f47fc 100755 (executable)
@@ -198,7 +198,7 @@ else
        PARENTS=""
 fi
 git-status >>.editmsg
-if [ "$?" != "0" -a ! -f $GIT_DIR/MERGE_HEAD ]
+if [ "$?" != "0" -a ! -f "$GIT_DIR/MERGE_HEAD" ]
 then
        rm -f .editmsg
        git-status