mirror of
https://github.com/git/git.git
synced 2024-04-27 12:55:10 +02:00
Merge branch 'ds/remove-idx-before-pack'
We create .pack and then .idx, we consider only packfiles that have .idx usable (those with only .pack are not ready yet), so we should remove .idx before removing .pack for consistency. * ds/remove-idx-before-pack: packfile: delete .idx files before .pack files
This commit is contained in:
commit
b2166b0d49
|
@ -381,7 +381,7 @@ void close_object_store(struct raw_object_store *o)
|
|||
|
||||
void unlink_pack_path(const char *pack_name, int force_delete)
|
||||
{
|
||||
static const char *exts[] = {".pack", ".idx", ".rev", ".keep", ".bitmap", ".promisor", ".mtimes"};
|
||||
static const char *exts[] = {".idx", ".pack", ".rev", ".keep", ".bitmap", ".promisor", ".mtimes"};
|
||||
int i;
|
||||
struct strbuf buf = STRBUF_INIT;
|
||||
size_t plen;
|
||||
|
|
Loading…
Reference in New Issue