Skip to content

Commit

Permalink
Racy GIT (part #3)
Browse files Browse the repository at this point in the history
Commit 29e4d36 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>
  • Loading branch information
Junio C Hamano committed Jun 29, 2006
1 parent 75dedd5 commit cc7d5bc
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
Expand Up @@ -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 () {
Expand Down

0 comments on commit cc7d5bc

Please sign in to comment.