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

This commit is contained in:
Pierre-Olivier Latour 2015-01-23 20:57:13 -08:00
parent a789b36100
commit b2a7bcdb54

View File

@ -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)