@@ -73,6 +73,7 @@ def setUp(self):
7373 commit 1 -> fork after -> remote 2
7474 tag1
7575 commit 2
76+ annotated tag2
7677 *remote2 (clone remote 1)
7778 commit 1
7879 commit 3
@@ -94,6 +95,8 @@ def setUp(self):
9495 subprocess .check_call (['git' , 'tag' , 'tag1' ], cwd = self .remote1 )
9596 self .commit_2_sha = git_write_commit (
9697 self .remote1 , 'tracked' , "last" , msg = "last commit" )
98+ subprocess .check_call (['git' , 'tag' , '-am' , 'foo' , 'tag2' ],
99+ cwd = self .remote1 )
97100 self .commit_3_sha = git_write_commit (
98101 self .remote2 , 'tracked2' , "remote2" , msg = "new commit" )
99102 subprocess .check_call (['git' , 'checkout' , '-b' , 'b2' ],
@@ -121,6 +124,24 @@ def test_minimal(self):
121124 last_rev = git_get_last_rev (self .cwd )
122125 self .assertEqual (last_rev , self .commit_1_sha )
123126
127+ def test_annotated_tag (self ):
128+ remotes = [{
129+ 'name' : 'r1' ,
130+ 'url' : self .url_remote1
131+ }]
132+ merges = [{
133+ 'remote' : 'r1' ,
134+ 'ref' : 'tag2'
135+ }]
136+ target = {
137+ 'remote' : 'r1' ,
138+ 'branch' : 'agg1'
139+ }
140+ repo = Repo (self .cwd , remotes , merges , target )
141+ repo .aggregate ()
142+ last_rev = git_get_last_rev (self .cwd )
143+ self .assertEqual (last_rev , self .commit_2_sha )
144+
124145 def test_simple_merge (self ):
125146 remotes = [{
126147 'name' : 'r1' ,
0 commit comments