Merge branch 'ap/svn'
[gitweb.git] / receive-pack.c
index 0ca2a80bf00b76a2b07b749bb1ff7cb77d44f7ee..828d49001d6c8494ede35e4ebbcea4fe482802dd 100644 (file)
@@ -10,7 +10,7 @@
 static const char receive_pack_usage[] = "git-receive-pack <git-dir>";
 
 static int deny_non_fast_forwards = 0;
-static int receive_fsck_objects = 1;
+static int receive_fsck_objects;
 static int receive_unpack_limit = -1;
 static int transfer_unpack_limit = -1;
 static int unpack_limit = 100;
@@ -481,6 +481,8 @@ int main(int argc, char **argv)
        if (!dir)
                usage(receive_pack_usage);
 
+       setup_path(NULL);
+
        if (!enter_repo(dir, 0))
                die("'%s': unable to chdir or not a git archive", dir);