diff options
| author | Jesse Ezell <[email protected]> | 2014-03-18 18:24:31 -0700 |
|---|---|---|
| committer | Jesse Ezell <[email protected]> | 2014-03-18 18:24:31 -0700 |
| commit | 3d7f737481e02fd8fb787916ade475b3dd6dc78d (patch) | |
| tree | 8bb50391733b69cc3dd9972b96e505978992ee51 | |
| parent | d1e7ee53d53d050d5d5be475f98f51e28a88840c (diff) | |
add simple clone test
| -rw-r--r-- | clone_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clone_test.go b/clone_test.go new file mode 100644 index 0000000..27e824b --- /dev/null +++ b/clone_test.go @@ -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) +} |
