summaryrefslogtreecommitdiff
path: root/ssh-upload.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-26 00:47:59 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-28 23:13:02 -0800
commit5a3277133d200151fe526e56e036c933d343958a (patch)
treea33a57bedea85936d19ef8e7a2c62418dc069383 /ssh-upload.c
parentb191fa72ea501c0789fb1bd7a80fcec9da38804d (diff)
downloadgit-5a3277133d200151fe526e56e036c933d343958a.tar.gz
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 'ssh-upload.c')
-rw-r--r--ssh-upload.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssh-upload.c b/ssh-upload.c
index 603abcc8c3..b675a0b1f1 100644
--- a/ssh-upload.c
+++ b/ssh-upload.c
@@ -121,6 +121,9 @@ int main(int argc, char **argv)
prog = getenv(COUNTERPART_ENV_NAME);
if (!prog) prog = COUNTERPART_PROGRAM_NAME;
+
+ setup_git_directory();
+
while (arg < argc && argv[arg][0] == '-') {
if (argv[arg][1] == 'w')
arg++;