(c *C)
| 327 | } |
| 328 | |
| 329 | func (s *SubmoduleSuite) TestRepositoryRelativeURLHTTPSParent(c *C) { |
| 330 | sm := newSubmoduleForRelativeURL(c, |
| 331 | "https://example.invalid/group/proj.git", "basic", "../X.git") |
| 332 | |
| 333 | r, err := sm.Repository() |
| 334 | c.Assert(err, IsNil) |
| 335 | |
| 336 | remotes, err := r.Remotes() |
| 337 | c.Assert(err, IsNil) |
| 338 | c.Assert(remotes, HasLen, 1) |
| 339 | c.Assert(remotes[0].Config().URLs[0], Equals, |
| 340 | "https://example.invalid/group/X.git") |
| 341 | } |
| 342 | |
| 343 | func (s *SubmoduleSuite) TestRepositoryRelativeURLSSHParent(c *C) { |
| 344 | sm := newSubmoduleForRelativeURL(c, |
nothing calls this directly
no test coverage detected