X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-init-db.c;h=235a0ee48f2c5ce09c63a949358eb16cde05332d;hb=9b8dc263e1b0d470cc67a824837d8884ae3e7136;hp=23b7714f894019c7d59fc9ede00d83c008d6bc89;hpb=ed378ec7e85fd2c5cfcc7bd64b454236357fdd97;p=git.git diff --git a/builtin-init-db.c b/builtin-init-db.c index 23b7714f8..235a0ee48 100644 --- a/builtin-init-db.c +++ b/builtin-init-db.c @@ -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;