enable index-pack streaming capability
[gitweb.git] / builtin-init-db.c
index 52473edf569e4d318a74548acefaf4023f37c87c..c3ed1ce4929472b4e3fb7577ac61bd914baf0954 100644 (file)
@@ -267,7 +267,7 @@ int cmd_init_db(int argc, const char **argv, const char *prefix)
                else if (!strncmp(arg, "--shared=", 9))
                        shared_repository = git_config_perm("arg", arg+9);
                else
-                       die(init_db_usage);
+                       usage(init_db_usage);
        }
 
        /*
@@ -311,6 +311,7 @@ int cmd_init_db(int argc, const char **argv, const char *prefix)
                 */
                sprintf(buf, "%d", shared_repository);
                git_config_set("core.sharedrepository", buf);
+               git_config_set("receive.denyNonFastforwards", "true");
        }
 
        return 0;