Clone opts init fix #69

Merged
jezell merged 3 commits from clone_opts_init_fix into master 2014-03-18 21:56:38 -05:00
1 changed files with 19 additions and 0 deletions
Showing only changes of commit 3d7f737481 - Show all commits

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