Commit 4738a337 by Pierre-Olivier Latour Committed by Carlos Martín Nieto

Fixed git_repository_set_bare() not setting "core.bare" correctly

parent d0db4085
...@@ -1723,7 +1723,7 @@ int git_repository_set_bare(git_repository *repo) ...@@ -1723,7 +1723,7 @@ int git_repository_set_bare(git_repository *repo)
if ((error = git_repository_config__weakptr(&config, repo)) < 0) if ((error = git_repository_config__weakptr(&config, repo)) < 0)
return error; 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; return error;
if ((error = git_config__update_entry(config, "core.worktree", NULL, true, true)) < 0) if ((error = git_config__update_entry(config, "core.worktree", NULL, true, true)) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment