diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-08-29 14:20:53 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-08-29 19:56:55 +0200 |
| commit | 89cd5708d94d8eb68a5e3a7b0fbda6ee904fb148 (patch) | |
| tree | b9ab5294270cbda955a82c9afb774abbb7efbf3a /src | |
| parent | 319ad0ba208ec67523a808269b8662c88727a0c9 (diff) | |
| download | libgit2-89cd5708d94d8eb68a5e3a7b0fbda6ee904fb148.tar.gz | |
repository: make initialization cope with missing core.worktree
Diffstat (limited to 'src')
| -rw-r--r-- | src/repository.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.c b/src/repository.c index c12df25c3..b9d180da4 100644 --- a/src/repository.c +++ b/src/repository.c @@ -777,8 +777,8 @@ static int repo_init_config( SET_REPO_CONFIG(string, "core.worktree", work_dir); } else if ((opts->flags & GIT_REPOSITORY_INIT__IS_REINIT) != 0) { - if ((error = git_config_delete(config, "core.worktree")) < 0) - goto cleanup; + if (git_config_delete(config, "core.worktree") < 0) + giterr_clear(); } } else { if (!are_symlinks_supported(repo_dir)) |
