summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Olivier Latour <pol@mac.com>2015-01-23 20:57:13 -0800
committerCarlos Martín Nieto <cmn@dwim.me>2015-03-21 21:12:08 +0100
commit4738a3376aa796c5a742b4bb9e1330e17bd412e3 (patch)
treeb5fdf03ca39dc886047c71366e75248ccbfaa74e
parentd0db40857477b3a2d24f668f35f33677a8c31139 (diff)
downloadlibgit2-4738a3376aa796c5a742b4bb9e1330e17bd412e3.tar.gz
Fixed git_repository_set_bare() not setting "core.bare" correctly
-rw-r--r--src/repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c
index 0cf8eb66b..983eceef0 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -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)