X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=ssh-fetch.c;h=4eb9e04829b5925ea07c764239f91e801e158c78;hb=f8f9c73c7d835ec1e5b665c66623aed49fcd4888;hp=bf01fbc00d649231cb7ba49aba9432afe570b319;hpb=3eeb419968c1f8f0a762a7127db770e9d9c8037d;p=thirdparty%2Fgit.git diff --git a/ssh-fetch.c b/ssh-fetch.c index bf01fbc00d..4eb9e04829 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;