mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 12:00:34 +00:00
Merge pull request #2841 from swisspol/set_bare
Fixed git_repository_set_bare() not setting "core.bare" correctly
This commit is contained in:
commit
9f1ee63d8f
@ -1723,7 +1723,7 @@ int git_repository_set_bare(git_repository *repo)
|
||||
if ((error = git_repository_config__weakptr(&config, repo)) < 0)
|
||||
return error;
|
||||
|
||||
if ((error = git_config_set_bool(config, "core.bare", false)) < 0)
|
||||
if ((error = git_config_set_bool(config, "core.bare", true)) < 0)
|
||||
return error;
|
||||
|
||||
if ((error = git_config__update_entry(config, "core.worktree", NULL, true, true)) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user