зеркало из https://github.com/microsoft/git.git
builtin/index-pack.c: move `.idx` files into place last
In a similar spirit as preceding patches to `git repack` and `git pack-objects`, fix the identical problem in `git index-pack`. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
8737dab346
Коммит
522a5c2cf5
|
@ -1527,11 +1527,11 @@ static void final(const char *final_pack_name, const char *curr_pack_name,
|
|||
|
||||
rename_tmp_packfile(&final_pack_name, curr_pack_name, &pack_name,
|
||||
hash, "pack", from_stdin);
|
||||
rename_tmp_packfile(&final_index_name, curr_index_name, &index_name,
|
||||
hash, "idx", 1);
|
||||
if (curr_rev_index_name)
|
||||
rename_tmp_packfile(&final_rev_index_name, curr_rev_index_name,
|
||||
&rev_index_name, hash, "rev", 1);
|
||||
rename_tmp_packfile(&final_index_name, curr_index_name, &index_name,
|
||||
hash, "idx", 1);
|
||||
|
||||
if (do_fsck_object) {
|
||||
struct packed_git *p;
|
||||
|
|
Загрузка…
Ссылка в новой задаче