Code

Simplify calling of CR/LF conversion routines
[git.git] / git-commit.sh
index 292cf967e3cbc77e7b49eb7252a756194e917418..9e0959aec06c4d4d7b4f14660c26bc9dd941f111 100755 (executable)
@@ -370,8 +370,8 @@ t,)
                # the same way.
                if test -z "$initial_commit"
                then
-                       cp "$THIS_INDEX" "$TMP_INDEX"
-                       GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -i -m HEAD
+                       GIT_INDEX_FILE="$THIS_INDEX" \
+                       git-read-tree --index-output="$TMP_INDEX" -i -m HEAD
                else
                        rm -f "$TMP_INDEX"
                fi || exit