Also force LC_ALL in test scripts.
[gitweb.git] / git-commit.sh
index 1206c20c2eca1edfb9318891d8237685d237c945..591fcdceb1a3d47ce311bda0b3a81b62e99f47fc 100755 (executable)
@@ -133,10 +133,13 @@ fi | git-stripspace >.editmsg
 
 case "$signoff" in
 t)
-       git-var GIT_COMMITTER_IDENT | sed -e '
-               s/>.*/>/
-               s/^/Signed-off-by: /
-       ' >>.editmsg
+       {
+               echo
+               git-var GIT_COMMITTER_IDENT | sed -e '
+                       s/>.*/>/
+                       s/^/Signed-off-by: /
+               '
+       } >>.editmsg
        ;;
 esac
 
@@ -195,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