(c *C)
| 54 | } |
| 55 | |
| 56 | func (s *RefSpecSuite) TestRefSpecIsDelete(c *C) { |
| 57 | spec := RefSpec(":refs/heads/master") |
| 58 | c.Assert(spec.IsDelete(), Equals, true) |
| 59 | |
| 60 | spec = RefSpec("+refs/heads/*:refs/remotes/origin/*") |
| 61 | c.Assert(spec.IsDelete(), Equals, false) |
| 62 | |
| 63 | spec = RefSpec("refs/heads/*:refs/remotes/origin/*") |
| 64 | c.Assert(spec.IsDelete(), Equals, false) |
| 65 | } |
| 66 | |
| 67 | func (s *RefSpecSuite) TestRefSpecIsExactSHA1(c *C) { |
| 68 | spec := RefSpec("foo:refs/heads/master") |