mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 15:10:02 +00:00
Fixed Xcode 6.1 build warnings
This commit is contained in:
parent
cc605e73ac
commit
8113056c7a
@ -22,17 +22,17 @@ void test_repo_open__bare_empty_repo(void)
|
|||||||
|
|
||||||
void test_repo_open__format_version_1(void)
|
void test_repo_open__format_version_1(void)
|
||||||
{
|
{
|
||||||
git_buf path = GIT_BUF_INIT;
|
|
||||||
git_repository *repo;
|
git_repository *repo;
|
||||||
git_config *config;
|
git_config *config;
|
||||||
|
|
||||||
repo = cl_git_sandbox_init("empty_bare.git");
|
repo = cl_git_sandbox_init("empty_bare.git");
|
||||||
|
|
||||||
cl_git_pass(git_repository_open(&repo, "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));
|
cl_git_pass(git_config_set_int32(config, "core.repositoryformatversion", 1));
|
||||||
|
|
||||||
|
git_config_free(config);
|
||||||
git_repository_free(repo);
|
git_repository_free(repo);
|
||||||
cl_git_fail(git_repository_open(&repo, "empty_bare.git"));
|
cl_git_fail(git_repository_open(&repo, "empty_bare.git"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user