X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=ssh-fetch.c;h=4eb9e04829b5925ea07c764239f91e801e158c78;hb=e6c310fd0d7384973efc6b1d5999a5e8a5b2f3bd;hp=bf01fbc00d649231cb7ba49aba9432afe570b319;hpb=70a0c6fe39da7e3f68836051408bc8eb3ce60ba7;p=git.git diff --git a/ssh-fetch.c b/ssh-fetch.c index bf01fbc0..4eb9e048 100644 --- a/ssh-fetch.c +++ b/ssh-fetch.c @@ -131,6 +131,8 @@ int main(int argc, char **argv) prog = getenv("GIT_SSH_PUSH"); if (!prog) prog = "git-ssh-upload"; + setup_git_directory(); + while (arg < argc && argv[arg][0] == '-') { if (argv[arg][1] == 't') { get_tree = 1;