add simple clone test

This commit is contained in:
Jesse Ezell 2014-03-18 18:24:31 -07:00
parent d1e7ee53d5
commit 3d7f737481
1 changed files with 19 additions and 0 deletions

19
clone_test.go Normal file
View File

@ -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)
}