diff options
author | Taylor Blau <me@ttaylorr.com> | 2021-10-08 17:46:38 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-15 13:08:11 -0700 |
commit | ae22e8415d5ec2b52a4c83e181297ac15aeaced0 (patch) | |
tree | 02151eb52b59cfd8f816743f1f4fcd24971c7360 /t/t4116-apply-reverse.sh | |
parent | midx.c: lookup MIDX by object directory during repack (diff) | |
download | tgif-ae22e8415d5ec2b52a4c83e181297ac15aeaced0.tar.xz |
midx.c: guard against commit_lock_file() failures
When writing a MIDX, we atomically move the new MIDX into place via
commit_lock_file(), but do not check to see if that call was successful.
Make sure that we do check in order to prevent us from incorrectly
reporting that we wrote a new MIDX if we actually encountered an error.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4116-apply-reverse.sh')
0 files changed, 0 insertions, 0 deletions