diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-05-18 14:29:05 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-05-18 14:29:05 +0900 |
| commit | 31cee669ba10e2d32800b72eb72ddbafb425504b (patch) | |
| tree | af924533600418184cef4d76ca5c352784c9598c /t/t5505-remote.sh | |
| parent | e308604a4f90a8b4c2ec4b9647ce89f00c348980 (diff) | |
| parent | df67d73ca3268eec5c924d6fe9d2c050ce23f3b1 (diff) | |
| download | git-seen.tar.gz git-seen.zip | |
Merge branch 'jt/config-lock-timeout' into seenseen
Configuration file locking now retries for a short period, avoiding
failures when multiple processes attempt to update the configuration
simultaneously.
Comments?
cf. <xmqqzf1xbl4i.fsf@gitster.g>
* jt/config-lock-timeout:
config: retry acquiring config.lock, configurable via core.configLockTimeout
Diffstat (limited to 't/t5505-remote.sh')
| -rwxr-xr-x | t/t5505-remote.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index e592c0bcde..aea9222649 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -1327,7 +1327,8 @@ test_expect_success 'remote set-url with locked config' ' test_when_finished "rm -f .git/config.lock" && git config --get-all remote.someremote.url >expect && >.git/config.lock && - test_must_fail git remote set-url someremote baz && + test_must_fail git -c core.configLockTimeout=0 \ + remote set-url someremote baz && git config --get-all remote.someremote.url >actual && cmp expect actual ' |
