Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
76873c09
Commit
76873c09
authored
May 03, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Silence return value warning
parent
22772166
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests-clar/clar_helpers.c
+2
-2
No files found.
tests-clar/clar_helpers.c
View file @
76873c09
...
@@ -60,7 +60,7 @@ git_repository *cl_git_sandbox_init(const char *sandbox)
...
@@ -60,7 +60,7 @@ git_repository *cl_git_sandbox_init(const char *sandbox)
cl_fixture_sandbox
(
sandbox
);
cl_fixture_sandbox
(
sandbox
);
_cl_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
/* If this is not a bare repo, then rename `sandbox/.gitted` to
* `sandbox/.git` which must be done since we cannot store a folder
* `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)
...
@@ -80,7 +80,7 @@ git_repository *cl_git_sandbox_init(const char *sandbox)
if
(
p_access
(
"gitignore"
,
F_OK
)
==
0
)
if
(
p_access
(
"gitignore"
,
F_OK
)
==
0
)
cl_git_pass
(
p_rename
(
"gitignore"
,
".gitignore"
));
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 */
/* Now open the sandbox repository and make it available for tests */
cl_git_pass
(
git_repository_open
(
&
_cl_repo
,
sandbox
));
cl_git_pass
(
git_repository_open
(
&
_cl_repo
,
sandbox
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment