Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aacfd03

Browse files
committed
Merge pull request libgit2#3251 from git-up/fixes
Fixes
2 parents cc605e7 + 6a8f3fa commit aacfd03

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/repository.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ int git_repository_open_ext(
531531

532532
if (config &&
533533
((error = load_config_data(repo, config)) < 0 ||
534-
(error = load_workdir(repo, config, &parent))) < 0)
534+
(error = load_workdir(repo, config, &parent)) < 0))
535535
goto cleanup;
536536
}
537537

tests/repo/open.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ void test_repo_open__bare_empty_repo(void)
2222

2323
void test_repo_open__format_version_1(void)
2424
{
25-
git_buf path = GIT_BUF_INIT;
2625
git_repository *repo;
2726
git_config *config;
2827

2928
repo = cl_git_sandbox_init("empty_bare.git");
3029

3130
cl_git_pass(git_repository_open(&repo, "empty_bare.git"));
32-
cl_git_pass(git_repository_config__weakptr(&config, repo));
31+
cl_git_pass(git_repository_config(&config, repo));
3332

3433
cl_git_pass(git_config_set_int32(config, "core.repositoryformatversion", 1));
3534

35+
git_config_free(config);
3636
git_repository_free(repo);
3737
cl_git_fail(git_repository_open(&repo, "empty_bare.git"));
3838
}

0 commit comments

Comments
 (0)