Silence return value warning

This commit is contained in:
Vicent Martí 2012-05-03 13:30:14 -07:00
parent 2277216613
commit 76873c0905

View File

@ -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));