Merge branch 'tb/pack-revindex-on-disk'

Fix for a topic in 'master'.

* tb/pack-revindex-on-disk:
  pack-revindex.c: don't close unopened file descriptors
This commit is contained in:
Junio C Hamano 2021-03-14 16:01:40 -07:00
commit 074d162eff

View File

@ -253,7 +253,8 @@ cleanup:
*data_p = (const uint32_t *)data;
}
close(fd);
if (fd >= 0)
close(fd);
return ret;
}