MCPcopy
hub / github.com/go-git/go-git / TestPlainCloneWithRemoteName

Method TestPlainCloneWithRemoteName

repository_test.go:1003–1016  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

1001}
1002
1003func (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
1018func (s *RepositorySuite) TestPlainCloneOverExistingGitDirectory(c *C) {
1019 dir := c.MkDir()

Callers

nothing calls this directly

Calls 3

PlainCloneFunction · 0.85
RemoteMethod · 0.80

Tested by

no test coverage detected