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 /diff.c | |
| parent | c0f1f9dec4457ffecf9e087665e6eb28da19c18f (diff) | |
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 'diff.c')
0 files changed, 0 insertions, 0 deletions
