aboutsummaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-29 14:48:22 -0700
committerJunio C Hamano <junkio@cox.net>2006-06-29 14:48:22 -0700
commitcc7d5bcf006e92d554cae0aefc9d8681d4659dce (patch)
treeb01489c36672856c17fa7a0b4687871e8f960111 /git-commit.sh
parent75dedd5a21246be03ae443e9fc6a9f75c6d2995b (diff)
downloadgit-cc7d5bcf006e92d554cae0aefc9d8681d4659dce.tar.gz
git-cc7d5bcf006e92d554cae0aefc9d8681d4659dce.tar.xz
Racy GIT (part #3)
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>
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 7e50cf399..22c4ce86c 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -29,7 +29,7 @@ THIS_INDEX="$GIT_DIR/index"
NEXT_INDEX="$GIT_DIR/next-index$$"
rm -f "$NEXT_INDEX"
save_index () {
- cp "$THIS_INDEX" "$NEXT_INDEX"
+ cp -p "$THIS_INDEX" "$NEXT_INDEX"
}
report () {