summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-01-26 11:20:00 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2015-01-26 11:20:00 -0600
commit9f1ee63d8f2e59696ebeeed4fa756d129d1fbbd4 (patch)
treef8e02a8b3c729ad899b1ebc729d5fd81f541de8f
parent65bc22fa504f8d644725d4472d0b0267ed0474a5 (diff)
parentb2a7bcdb54ef0346a9a595100592a139538b3452 (diff)
downloadlibgit2-9f1ee63d8f2e59696ebeeed4fa756d129d1fbbd4.tar.gz
Merge pull request #2841 from swisspol/set_bare
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)