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
ada157b2
Commit
ada157b2
authored
Apr 02, 2014
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add warning when skipping blame test
parent
d1a09004
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
tests/blame/simple.c
+7
-12
No files found.
tests/blame/simple.c
View file @
ada157b2
...
...
@@ -135,18 +135,13 @@ void test_blame_simple__trivial_libgit2(void)
git_blame_options
opts
=
GIT_BLAME_OPTIONS_INIT
;
git_object
*
obj
;
/* If we can't open the libgit2 repo, just skip this test */
if
(
git_repository_open
(
&
g_repo
,
cl_fixture
(
"../.."
))
<
0
)
{
giterr_clear
();
return
;
}
/* This test can't work on a shallow clone */
if
(
git_repository_is_shallow
(
g_repo
))
return
;
/* If somehow it is not a valid libgit2 repo, just move along */
if
(
git_revparse_single
(
&
obj
,
g_repo
,
"359fc2d"
)
<
0
)
{
/* If we can't open the libgit2 repo or if it isn't a full repo
* with proper history, just skip this test */
if
(
git_repository_open
(
&
g_repo
,
cl_fixture
(
"../.."
))
<
0
||
git_repository_is_shallow
(
g_repo
)
||
git_revparse_single
(
&
obj
,
g_repo
,
"359fc2d"
)
<
0
)
{
printf
(
"NOT INSIDE VALID LIBGIT2 REPO; skipping blame test
\n
"
);
giterr_clear
();
return
;
}
...
...
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