summaryrefslogtreecommitdiff
path: root/clone-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 08:47:59 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-29 07:13:02 (GMT)
commit5a3277133d200151fe526e56e036c933d343958a (patch)
treea33a57bedea85936d19ef8e7a2c62418dc069383 /clone-pack.c
parentb191fa72ea501c0789fb1bd7a80fcec9da38804d (diff)
downloadgit-5a3277133d200151fe526e56e036c933d343958a.zip
git-5a3277133d200151fe526e56e036c933d343958a.tar.gz
git-5a3277133d200151fe526e56e036c933d343958a.tar.bz2
Make networking commands to work from a subdirectory.
These are whole-tree operations and there is not much point making them operable from within a subdirectory, but it is easy to do so, and using setup_git_directory() upfront helps git:// proxy specification picked up from the correct place. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'clone-pack.c')
-rw-r--r--clone-pack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clone-pack.c b/clone-pack.c
index 9609219..a99a95c 100644
--- a/clone-pack.c
+++ b/clone-pack.c
@@ -271,6 +271,8 @@ int main(int argc, char **argv)
int fd[2];
pid_t pid;
+ setup_git_directory();
+
nr_heads = 0;
heads = NULL;
for (i = 1; i < argc; i++) {