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
a014a083
Commit
a014a083
authored
Oct 14, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #459 from brodie/test-improvements
tests: propagate errors from open_temp_repo() instead of exiting
parents
1776f5ab
252840a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tests/test_helpers.c
+3
-4
No files found.
tests/test_helpers.c
View file @
a014a083
...
...
@@ -217,10 +217,9 @@ int copydir_recurs(const char *source_directory_path, const char *destination_di
int
open_temp_repo
(
git_repository
**
repo
,
const
char
*
path
)
{
if
(
copydir_recurs
(
path
,
TEMP_REPO_FOLDER
)
<
GIT_SUCCESS
)
{
printf
(
"
\n
Failed to create temporary folder. Aborting test suite.
\n
"
);
exit
(
-
1
);
}
int
error
;
if
((
error
=
copydir_recurs
(
path
,
TEMP_REPO_FOLDER
))
<
GIT_SUCCESS
)
return
error
;
return
git_repository_open
(
repo
,
TEMP_REPO_FOLDER
);
}
...
...
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