diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-06-30 01:43:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-30 01:43:20 +0200 |
commit | b2166b0d496c2f3df96929da300039a01227e719 (patch) | |
tree | 4f6b72b30dc263f372946e9300df8b23bc312ea2 /packfile.c | |
parent | The fifth batch (diff) | |
parent | packfile: delete .idx files before .pack files (diff) | |
download | git-b2166b0d496c2f3df96929da300039a01227e719.tar.xz git-b2166b0d496c2f3df96929da300039a01227e719.zip |
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
Diffstat (limited to 'packfile.c')
-rw-r--r-- | packfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packfile.c b/packfile.c index fd083c86e0..6b591ddccc 100644 --- a/packfile.c +++ b/packfile.c @@ -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; |