diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-06-11 08:44:42 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-11 05:05:54 -0700 |
| commit | f12d73132ea23788167a6b21fad63d85c76fa863 (patch) | |
| tree | 0a6b611b4b35038230d01e498da536d0d76ff829 /t/t4013/diff.diff_initial..side | |
| parent | 85f5f504f046bccf86b78ba02064a4b013d7264f (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 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
