mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 15:32:35 +00:00
Silence return value warning
This commit is contained in:
parent
2277216613
commit
76873c0905
@ -60,7 +60,7 @@ git_repository *cl_git_sandbox_init(const char *sandbox)
|
||||
cl_fixture_sandbox(sandbox);
|
||||
_cl_sandbox = sandbox;
|
||||
|
||||
p_chdir(sandbox);
|
||||
cl_git_pass(p_chdir(sandbox));
|
||||
|
||||
/* If this is not a bare repo, then rename `sandbox/.gitted` to
|
||||
* `sandbox/.git` which must be done since we cannot store a folder
|
||||
@ -80,7 +80,7 @@ git_repository *cl_git_sandbox_init(const char *sandbox)
|
||||
if (p_access("gitignore", F_OK) == 0)
|
||||
cl_git_pass(p_rename("gitignore", ".gitignore"));
|
||||
|
||||
p_chdir("..");
|
||||
cl_git_pass(p_chdir(".."));
|
||||
|
||||
/* Now open the sandbox repository and make it available for tests */
|
||||
cl_git_pass(git_repository_open(&_cl_repo, sandbox));
|
||||
|
Loading…
Reference in New Issue
Block a user