diff --git a/git-commit.sh b/git-commit.sh
index 3656d607d5b91d8d125b5a72b6a2a00aee512618..9e0959aec06c4d4d7b4f14660c26bc9dd941f111 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
# the same way.
if test -z "$initial_commit"
then
- cp "$THIS_INDEX" "$TMP_INDEX"
- GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -m HEAD
+ GIT_INDEX_FILE="$THIS_INDEX" \
+ git-read-tree --index-output="$TMP_INDEX" -i -m HEAD
else
rm -f "$TMP_INDEX"
fi || exit