@matheusbsbs / matheus-bagliano / commits / d3e41ebff4
Fork 0

git-commit: "read-tree -m HEAD" is not the right way to read-tree quickly

It still looks at the working tree and checks for locally modified paths. When are preparing a temporary index from HEAD, we do not want any of that. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Mar 28, 2007 at 03:05 UTC d3e41ebff44745055001e59e460509a8f04b81a2
1 file changed +1 -1
git-commit.sh
+1 -1
@@ -360,7 +360,7 @@ t,)
360 if test -z "$initial_commit"
361 then
362 cp "$THIS_INDEX" "$TMP_INDEX"
363 - GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -m HEAD
363 + GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -i -m HEAD
364 else
365 rm -f "$TMP_INDEX"
366 fi || exit