Message ID | 20240815153007.GA1477220@coredump.intra.peff.net (mailing list archive) |
---|---|
State | Accepted |
Commit | 49e5cc5b26550951c2381d959f866db656a97c3c |
Headers | show |
Series | t4129: fix racy index when calling chmod after git-add | expand |
Jeff King <peff@peff.net> writes: > Ah, thanks. I saw this fail once in CI, and then later succeed. But for > some reason I wrote it off as CI flakiness rather than trying --stress > locally. It's easy to reproduce the issue. Thanks. Will queue.
diff --git a/t/t4129-apply-samemode.sh b/t/t4129-apply-samemode.sh index d9a1084b5e..87ffd2b8e1 100755 --- a/t/t4129-apply-samemode.sh +++ b/t/t4129-apply-samemode.sh @@ -153,8 +153,8 @@ test_expect_success POSIXPERM 'patch mode for new file is canonicalized' ' test_expect_success POSIXPERM 'patch mode for deleted file is canonicalized' ' test_when_finished "git reset --hard" && echo content >non-canon && - git add non-canon && chmod 666 non-canon && + git add non-canon && cat >patch <<-\EOF && diff --git a/non-canon b/non-canon