summaryrefslogtreecommitdiff
path: root/pack-write.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-09-23 02:05:35 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-09-23 02:05:35 -0700
commitc4275591fbb7d582c397b228e38dbb8419c89330 (patch)
treec373b96e267cdc6760ef579135113284985fb7cf /pack-write.c
parentMerge branch 'maint' (diff)
parentbuiltin-prune.c: prune temporary packs in <object_dir>/pack directory (diff)
downloadtgif-c4275591fbb7d582c397b228e38dbb8419c89330.tar.xz
Merge branch 'maint'
* maint: builtin-prune.c: prune temporary packs in <object_dir>/pack directory Do not perform cross-directory renames when creating packs
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 939ed56362..3621f1dd32 100644
--- a/pack-write.c
+++ b/pack-write.c
@@ -45,7 +45,7 @@ char *write_idx_file(char *index_name, struct pack_idx_entry **objects,
if (!index_name) {
static char tmpfile[PATH_MAX];
snprintf(tmpfile, sizeof(tmpfile),
- "%s/tmp_idx_XXXXXX", get_object_directory());
+ "%s/pack/tmp_idx_XXXXXX", get_object_directory());
fd = xmkstemp(tmpfile);
index_name = xstrdup(tmpfile);
} else {