diff options
Diffstat (limited to 'config/refspec_test.go')
-rw-r--r-- | config/refspec_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/refspec_test.go b/config/refspec_test.go index 2d2b057..aaeac73 100644 --- a/config/refspec_test.go +++ b/config/refspec_test.go @@ -167,6 +167,15 @@ func (s *RefSpecSuite) TestRefSpecDstBlob(c *C) { ) } } + +func (s *RefSpecSuite) TestRefSpecReverse(c *C) { + spec := RefSpec("refs/heads/*:refs/remotes/origin/*") + c.Assert( + spec.Reverse(), Equals, + RefSpec("refs/remotes/origin/*:refs/heads/*"), + ) +} + func (s *RefSpecSuite) TestMatchAny(c *C) { specs := []RefSpec{ "refs/heads/bar:refs/remotes/origin/foo", |