projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lost-found: make it operable from a subdirectory.
[git.git]
/
clone-pack.c
diff --git
a/clone-pack.c
b/clone-pack.c
index
4f4975b
..
a99a95c
100644
(file)
--- 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),
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);
ofd = mkstemp(tmpfile);
if (ofd < 0)
return error("unable to create temporary file %s", tmpfile);
@@
-271,6
+271,8
@@
int main(int argc, char **argv)
int fd[2];
pid_t pid;
int fd[2];
pid_t pid;
+ setup_git_directory();
+
nr_heads = 0;
heads = NULL;
for (i = 1; i < argc; i++) {
nr_heads = 0;
heads = NULL;
for (i = 1; i < argc; i++) {