Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
setup: limit get_git_work_tree()'s to explicit setup case only
[gitweb.git]
/
builtin
/
init-db.c
diff --git
a/builtin/init-db.c
b/builtin/init-db.c
index 9d4886c71675f2bc50671ea284875ebae9a34735..ea064784dbe0dc06527f8836e286059069ca1050 100644
(file)
--- a/
builtin/init-db.c
+++ b/
builtin/init-db.c
@@
-496,6
+496,7
@@
int cmd_init_db(int argc, const char **argv, const char *prefix)
if (is_bare_repository_cfg < 0)
is_bare_repository_cfg = guess_repository_type(git_dir);
+ startup_info->setup_explicit = 1;
if (!is_bare_repository_cfg) {
if (git_dir) {
const char *git_dir_parent = strrchr(git_dir, '/');