summaryrefslogtreecommitdiff
path: root/clone-pack.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2005-10-25 23:41:20 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-26 06:49:43 (GMT)
commit9e48b389990c0201487e58f3bac32734a59a7e89 (patch)
treedf8ff167b771bfe3058426f294729bfab21152ee /clone-pack.c
parent303958dc42d451aead0e1b9cf7b9836831a05f4b (diff)
downloadgit-9e48b389990c0201487e58f3bac32734a59a7e89.zip
git-9e48b389990c0201487e58f3bac32734a59a7e89.tar.gz
git-9e48b389990c0201487e58f3bac32734a59a7e89.tar.bz2
Work around missing hard links on FAT formatted media
FAT -- like Coda -- does not like cross-directory hard links. To be precise, FAT does not like links at all. But links are not needed either. So get rid of them. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'clone-pack.c')
-rw-r--r--clone-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clone-pack.c b/clone-pack.c
index 4f4975b..9609219 100644
--- a/clone-pack.c
+++ b/clone-pack.c
@@ -211,7 +211,7 @@ static int clone_without_unpack(int fd[2])
ifd = fd[0];
snprintf(tmpfile, sizeof(tmpfile),
- "%s/pack-XXXXXX", get_object_directory());
+ "%s/pack/tmp-XXXXXX", get_object_directory());
ofd = mkstemp(tmpfile);
if (ofd < 0)
return error("unable to create temporary file %s", tmpfile);