Skip to content

Commit

Permalink
git-commit: "read-tree -m HEAD" is not the right way to read-tree qui…
Browse files Browse the repository at this point in the history
…ckly

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>
  • Loading branch information
Junio C Hamano committed Mar 28, 2007
1 parent fd2a759 commit d3e41eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-commit.sh
Original file line number Diff line number Diff line change
@@ -360,7 +360,7 @@ t,)
if test -z "$initial_commit"
then
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
rm -f "$TMP_INDEX"
fi || exit

0 comments on commit d3e41eb

Please sign in to comment.