X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-init-db.c;h=c3ed1ce4929472b4e3fb7577ac61bd914baf0954;hb=173a9cbe7031bc3574b3f41cb2d2375cf959ff2a;hp=7fdd2fa9f9f7fb2801c6e1fc398f78b414a269e1;hpb=ada5853c98c5c0ad84a990cc6ee7365a14555c0f;p=git.git diff --git a/builtin-init-db.c b/builtin-init-db.c index 7fdd2fa9f..c3ed1ce49 100644 --- a/builtin-init-db.c +++ b/builtin-init-db.c @@ -250,7 +250,7 @@ static const char init_db_usage[] = * On the other hand, it might just make lookup slower and messier. You * be the judge. The default case is to have one DB per managed directory. */ -int cmd_init_db(int argc, const char **argv, char **envp) +int cmd_init_db(int argc, const char **argv, const char *prefix) { const char *git_dir; const char *sha1_dir; @@ -267,7 +267,7 @@ int cmd_init_db(int argc, const char **argv, char **envp) 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, char **envp) */ sprintf(buf, "%d", shared_repository); git_config_set("core.sharedrepository", buf); + git_config_set("receive.denyNonFastforwards", "true"); } return 0;