@matheusbsbs / matheus-bagliano / commits / cc7d5bcf00
Fork 0

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>

Junio C Hamano committed Jun 29, 2006 at 14:48 UTC cc7d5bcf006e92d554cae0aefc9d8681d4659dce
1 file changed +1 -1
git-commit.sh
+1 -1
@@ -29,7 +29,7 @@ THIS_INDEX="$GIT_DIR/index"
29 NEXT_INDEX="$GIT_DIR/next-index$$"
30 rm -f "$NEXT_INDEX"
31 save_index () {
32 - cp "$THIS_INDEX" "$NEXT_INDEX"
32 + cp -p "$THIS_INDEX" "$NEXT_INDEX"
33 }
34
35 report () {