提交 d3e41ebf 编写于 作者: J Junio C Hamano

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: NJunio C Hamano <junkio@cox.net>
上级 fd2a7597
...@@ -360,7 +360,7 @@ t,) ...@@ -360,7 +360,7 @@ t,)
if test -z "$initial_commit" if test -z "$initial_commit"
then then
cp "$THIS_INDEX" "$TMP_INDEX" cp "$THIS_INDEX" "$TMP_INDEX"
GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -m HEAD GIT_INDEX_FILE="$TMP_INDEX" git-read-tree -i -m HEAD
else else
rm -f "$TMP_INDEX" rm -f "$TMP_INDEX"
fi || exit fi || exit
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册