aboutsummaryrefslogtreecommitdiff
path: root/ssh-upload.c
diff options
context:
space:
mode:
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 603abcc8c..b675a0b1f 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++;