X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=ssh-upload.c;h=b675a0b1f1df7d313f8201d59ad25b1c3d53a2f4;hb=9470657ad0d0472e3e3c2e352334f60e7bd777c1;hp=603abcc8c3da9029a50fb7a2e76b0d6f70e2abeb;hpb=8ac93bc98f5e868e890e1a740df9f0c6513189c8;p=git.git diff --git a/ssh-upload.c b/ssh-upload.c index 603abcc8..b675a0b1 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++;