summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.cgi
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-06-11 08:44:42 +0200
committerJunio C Hamano <gitster@pobox.com>2026-06-11 05:05:54 -0700
commitf12d73132ea23788167a6b21fad63d85c76fa863 (patch)
tree0a6b611b4b35038230d01e498da536d0d76ff829 /gitweb/gitweb.cgi
parent85f5f504f046bccf86b78ba02064a4b013d7264f (diff)
builtin/init: stop modifying `is_bare_repository_cfg`
We're modifying `is_bare_repository_cfg` in "builtin/init.c" to indicate whether the newly created repository is supposed to be a bare repository or not. This is ultimately unnecessary though: when initializing the repository in `init_db()` we eventually set `is_bare_repository_cfg = !work_tree`, so all that matters is whether or not we have a working tree configured, and the working tree is set up in the non-bare in "builtin/init.c". Stop modifying the global variable in "builtin/init.c" in favor of a local variable. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.cgi')
0 files changed, 0 insertions, 0 deletions