summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-06-29 23:47:59 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-06-29 23:47:59 -0700
commit93326071ea84a7685783ae76d9a8cec0a11845d0 (patch)
tree7b6bca43f70e4e420cbe5e9b1f2a5c247a056e9f
parentDo not try futile object pairs when repacking. (diff)
parentRacy GIT (part #3) (diff)
downloadtgif-93326071ea84a7685783ae76d9a8cec0a11845d0.tar.xz
Merge branch 'jc/test-3402'
* jc/test-3402: Racy GIT (part #3)
-rwxr-xr-xgit-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 7e50cf399b..22c4ce86c3 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 () {