diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-06-03 16:01:17 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-06-03 08:30:51 -0700 |
commit | c367852d9e3c114fe02e16f4d56f259f12188e2a (patch) | |
tree | aa19155bfd59a9ebe59415d6adb888681da398a2 /git-gui/lib/commit.tcl | |
parent | 5bb4298acfb57550934cefca85101825eff177e9 (diff) |
builtin/maintenance: fix locking race with refs and reflogs tasks
As explained in the preceding commit, git-gc(1) knows to detach only
after it has already packed references and expired reflogs. This is done
to avoid racing around their respective lockfiles.
Adapt git-maintenance(1) accordingly and run the "pack-refs" and
"reflog-expire" tasks in the foreground. Note that the "gc" task has the
same issue, but the fix is a bit more involved there and will thus be
done in a subsequent commit.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions