(c *C)
| 1001 | } |
| 1002 | |
| 1003 | func (s *RepositorySuite) TestPlainCloneWithRemoteName(c *C) { |
| 1004 | dir := c.MkDir() |
| 1005 | |
| 1006 | r, err := PlainClone(dir, false, &CloneOptions{ |
| 1007 | URL: s.GetBasicLocalRepositoryURL(), |
| 1008 | RemoteName: "test", |
| 1009 | }) |
| 1010 | |
| 1011 | c.Assert(err, IsNil) |
| 1012 | |
| 1013 | remote, err := r.Remote("test") |
| 1014 | c.Assert(err, IsNil) |
| 1015 | c.Assert(remote, NotNil) |
| 1016 | } |
| 1017 | |
| 1018 | func (s *RepositorySuite) TestPlainCloneOverExistingGitDirectory(c *C) { |
| 1019 | dir := c.MkDir() |
nothing calls this directly
no test coverage detected