Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-07-13 00:30:05 +0400
committerEdward Thomson <ethomson@microsoft.com>2013-07-13 00:31:55 +0400
commit1c13b0bfdcfb510863a6e5e3238f8a461551aa0f (patch)
tree9344e5b1977c38b1f8a095e6d6cd572b1ed61031 /tests-clar/online/push.c
parented0be48b939b1cc6329c6a75114dcd4158a720f5 (diff)
test that suggests tags arent fully peeled during push
Diffstat (limited to 'tests-clar/online/push.c')
-rw-r--r--tests-clar/online/push.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests-clar/online/push.c b/tests-clar/online/push.c
index 5dc7974c7..321180781 100644
--- a/tests-clar/online/push.c
+++ b/tests-clar/online/push.c
@@ -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"};