add simple clone test
This commit is contained in:
parent
d1e7ee53d5
commit
3d7f737481
|
@ -0,0 +1,19 @@
|
|||
package git
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_Clone(t *testing.T) {
|
||||
|
||||
repo := createTestRepo(t)
|
||||
seedTestRepo(t, repo)
|
||||
|
||||
path, err := ioutil.TempDir("", "git2go")
|
||||
checkFatal(t, err)
|
||||
|
||||
_, err = Clone(repo.Path(), path, &CloneOptions{Bare: true})
|
||||
|
||||
checkFatal(t, err)
|
||||
}
|
Loading…
Reference in New Issue