diff options
author | Pierre-Olivier Latour <pol@mac.com> | 2015-01-23 20:57:13 -0800 |
---|---|---|
committer | Carlos MartÃn Nieto <cmn@dwim.me> | 2015-03-21 21:12:08 +0100 |
commit | 4738a3376aa796c5a742b4bb9e1330e17bd412e3 (patch) | |
tree | b5fdf03ca39dc886047c71366e75248ccbfaa74e | |
parent | d0db40857477b3a2d24f668f35f33677a8c31139 (diff) | |
download | libgit2-4738a3376aa796c5a742b4bb9e1330e17bd412e3.tar.gz |
Fixed git_repository_set_bare() not setting "core.bare" correctly
-rw-r--r-- | src/repository.c | 2 |
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) |