diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2015-06-24 00:30:19 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-06-24 00:30:19 -0400 |
| commit | aacfd03dba68333da726bb63e2594f3ed4a16422 (patch) | |
| tree | 9ef50cd3c9366588b7bba0edde644eda13b3505c /tests | |
| parent | cc605e73acad8b665c3b89a645eae9de4299774b (diff) | |
| parent | 6a8f3fa85044243d9103283a899bc8058b3149fe (diff) | |
| download | libgit2-aacfd03dba68333da726bb63e2594f3ed4a16422.tar.gz | |
Merge pull request #3251 from git-up/fixes
Fixes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/repo/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/repo/open.c b/tests/repo/open.c index 6a5ab24fb..eb459e51d 100644 --- a/tests/repo/open.c +++ b/tests/repo/open.c @@ -22,17 +22,17 @@ void test_repo_open__bare_empty_repo(void) void test_repo_open__format_version_1(void) { - git_buf path = GIT_BUF_INIT; git_repository *repo; git_config *config; repo = cl_git_sandbox_init("empty_bare.git"); cl_git_pass(git_repository_open(&repo, "empty_bare.git")); - cl_git_pass(git_repository_config__weakptr(&config, repo)); + cl_git_pass(git_repository_config(&config, repo)); cl_git_pass(git_config_set_int32(config, "core.repositoryformatversion", 1)); + git_config_free(config); git_repository_free(repo); cl_git_fail(git_repository_open(&repo, "empty_bare.git")); } |
