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
0f299365
Commit
0f299365
authored
Dec 14, 2018
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotated_commit: add failing test for looking up from annotated tag
parent
da8138b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
tests/merge/annotated_commit.c
+26
-0
No files found.
tests/merge/annotated_commit.c
0 → 100644
View file @
0f299365
#include "clar_libgit2.h"
static
git_repository
*
g_repo
;
void
test_merge_annotated_commit__initialize
(
void
)
{
g_repo
=
cl_git_sandbox_init
(
"testrepo"
);
}
void
test_merge_annotated_commit__cleanup
(
void
)
{
cl_git_sandbox_cleanup
();
}
void
test_merge_annotated_commit__lookup_annotated_tag
(
void
)
{
git_annotated_commit
*
commit
;
git_reference
*
ref
;
cl_git_pass
(
git_reference_lookup
(
&
ref
,
g_repo
,
"refs/tags/test"
));
cl_git_pass
(
git_annotated_commit_from_ref
(
&
commit
,
g_repo
,
ref
));
git_annotated_commit_free
(
commit
);
git_reference_free
(
ref
);
}
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