aboutsummaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-28 03:05:08 -0700
committerJunio C Hamano <junkio@cox.net>2007-03-28 03:34:55 -0700
commitd3e41ebff44745055001e59e460509a8f04b81a2 (patch)
tree01817a15c7963d0891f9934d651abcb36d89f666 /git-commit.sh
parentfd2a75972e90d34bc8d4bebe1d669645557a2192 (diff)
downloadgit-d3e41ebff44745055001e59e460509a8f04b81a2.tar.gz
git-d3e41ebff44745055001e59e460509a8f04b81a2.tar.xz
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>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-commit.sh b/git-commit.sh
index cad16a5e8..fdaedc0e2 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -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