summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Olivier Latour <pol@mac.com>2015-01-23 20:57:13 -0800
committerPierre-Olivier Latour <pol@mac.com>2015-01-23 20:57:13 -0800
commitb2a7bcdb54ef0346a9a595100592a139538b3452 (patch)
treec2da8b5e6de89fd666fa7c582a1e013d7d972d32
parenta789b361004da746b02919631a333170dfe20819 (diff)
downloadlibgit2-b2a7bcdb54ef0346a9a595100592a139538b3452.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 f49a25124..daf9ee424 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)