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
1c13b0bf
Commit
1c13b0bf
authored
Jul 12, 2013
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test that suggests tags arent fully peeled during push
parent
ed0be48b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
0 deletions
+17
-0
tests-clar/online/push.c
+12
-0
tests-clar/resources/push_src/.gitted/objects/36/f79b2846017d3761e0a02d0bccd573e0f90c57
+3
-0
tests-clar/resources/push_src/.gitted/objects/ee/a4f2705eeec2db3813f2430829afce99cd00b5
+0
-0
tests-clar/resources/push_src/.gitted/refs/tags/tag-commit-two
+1
-0
tests-clar/resources/push_src/.gitted/refs/tags/tag-tag
+1
-0
No files found.
tests-clar/online/push.c
View file @
1c13b0bf
...
...
@@ -29,6 +29,7 @@ static git_oid _tag_commit;
static
git_oid
_tag_tree
;
static
git_oid
_tag_blob
;
static
git_oid
_tag_lightweight
;
static
git_oid
_tag_tag
;
static
int
cred_acquire_cb
(
git_cred
**
cred
,
...
...
@@ -272,6 +273,7 @@ void test_online_push__initialize(void)
git_oid_fromstr
(
&
_tag_tree
,
"ff83aa4c5e5d28e3bcba2f5c6e2adc61286a4e5e"
);
git_oid_fromstr
(
&
_tag_blob
,
"b483ae7ba66decee9aee971f501221dea84b1498"
);
git_oid_fromstr
(
&
_tag_lightweight
,
"951bbbb90e2259a4c8950db78946784fb53fcbce"
);
git_oid_fromstr
(
&
_tag_tag
,
"eea4f2705eeec2db3813f2430829afce99cd00b5"
);
/* Remote URL environment variable must be set. User and password are optional. */
_remote_url
=
cl_getenv
(
"GITTEST_REMOTE_URL"
);
...
...
@@ -569,6 +571,16 @@ void test_online_push__tag_lightweight(void)
exp_refs
,
ARRAY_SIZE
(
exp_refs
),
0
);
}
void
test_online_push__tag_to_tag
(
void
)
{
const
char
*
specs
[]
=
{
"refs/tags/tag-tag:refs/tags/tag-tag"
};
push_status
exp_stats
[]
=
{
{
"refs/tags/tag-tag"
,
NULL
}
};
expected_ref
exp_refs
[]
=
{
{
"refs/tags/tag-tag"
,
&
_tag_tag
}
};
do_push
(
specs
,
ARRAY_SIZE
(
specs
),
exp_stats
,
ARRAY_SIZE
(
exp_stats
),
exp_refs
,
ARRAY_SIZE
(
exp_refs
),
0
);
}
void
test_online_push__force
(
void
)
{
const
char
*
specs1
[]
=
{
"refs/heads/b3:refs/heads/tgt"
};
...
...
tests-clar/resources/push_src/.gitted/objects/36/f79b2846017d3761e0a02d0bccd573e0f90c57
0 → 100644
View file @
1c13b0bf
File added
tests-clar/resources/push_src/.gitted/objects/ee/a4f2705eeec2db3813f2430829afce99cd00b5
0 → 100644
View file @
1c13b0bf
File added
tests-clar/resources/push_src/.gitted/refs/tags/tag-commit-two
0 → 100644
View file @
1c13b0bf
36f79b2846017d3761e0a02d0bccd573e0f90c57
tests-clar/resources/push_src/.gitted/refs/tags/tag-tag
0 → 100644
View file @
1c13b0bf
eea4f2705eeec2db3813f2430829afce99cd00b5
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