Skip to content

Commit d3e41eb

Browse files
author
Junio C Hamano
committed
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 <[email protected]>
1 parent fd2a759 commit d3e41eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ t,)
360360
if test -z "$initial_commit"
361361
then
362362
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
364364
else
365365
rm -f "$TMP_INDEX"
366366
fi || exit

0 commit comments

Comments
 (0)