summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 75dedd5)
raw | patch | inline | side by side (parent: 75dedd5)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 29 Jun 2006 21:48:22 +0000 (14:48 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 29 Jun 2006 21:48:22 +0000 (14:48 -0700) |
Commit 29e4d3635709778bcc808dbad0477efad82f8d7e fixed the
underlying update-index races but git-commit was not careful
enough to preserve the index file timestamp when copying the
index file. This caused t3402 test to occasionally fail.
Signed-off-by: Junio C Hamano <junkio@cox.net>
underlying update-index races but git-commit was not careful
enough to preserve the index file timestamp when copying the
index file. This caused t3402 test to occasionally fail.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh | patch | blob | history |
diff --git a/git-commit.sh b/git-commit.sh
index 7e50cf399b70a5ec26824f0bf5b5210dbe06aedc..22c4ce86c3cc5b35fab27bbe9e75dbe334f58534 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
NEXT_INDEX="$GIT_DIR/next-index$$"
rm -f "$NEXT_INDEX"
save_index () {
- cp "$THIS_INDEX" "$NEXT_INDEX"
+ cp -p "$THIS_INDEX" "$NEXT_INDEX"
}
report () {