Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pack-write.c')
-rw-r--r--pack-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-write.c b/pack-write.c
index ca94e2b106..51157916f5 100644
--- a/pack-write.c
+++ b/pack-write.c
@@ -495,9 +495,9 @@ void finish_tmp_packfile(struct strbuf *name_buffer,
pack_idx_opts->flags);
rename_tmp_packfile(name_buffer, pack_tmp_name, "pack");
- rename_tmp_packfile(name_buffer, idx_tmp_name, "idx");
if (rev_tmp_name)
rename_tmp_packfile(name_buffer, rev_tmp_name, "rev");
+ rename_tmp_packfile(name_buffer, idx_tmp_name, "idx");
free((void *)idx_tmp_name);
}