summaryrefslogtreecommitdiff
path: root/clone_test.go
diff options
context:
space:
mode:
authorAidan Nulman <[email protected]>2014-04-03 16:41:43 -0400
committerAidan Nulman <[email protected]>2014-04-03 16:41:43 -0400
commitd9f4adff6c548a6cb6f00258c99129c7e41062b3 (patch)
tree264a73dcf05f99cec7395b20b3488ea202c3cadf /clone_test.go
parentb5e60dc106828b308fdb7e69fe10a0d2dec4eece (diff)
parent9cd1d129bcd567ef65137783a603f8d898d8d933 (diff)
Merge branch 'master' into custom_odb
Conflicts: odb.go wrapper.c
Diffstat (limited to 'clone_test.go')
-rw-r--r--clone_test.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/clone_test.go b/clone_test.go
new file mode 100644
index 0000000..97366bf
--- /dev/null
+++ b/clone_test.go
@@ -0,0 +1,23 @@
+package git
+
+import (
+ "io/ioutil"
+ "os"
+ "testing"
+)
+
+func TestClone(t *testing.T) {
+
+ repo := createTestRepo(t)
+ defer os.RemoveAll(repo.Workdir())
+
+ seedTestRepo(t, repo)
+
+ path, err := ioutil.TempDir("", "git2go")
+ checkFatal(t, err)
+
+ _, err = Clone(repo.Path(), path, &CloneOptions{Bare: true})
+ defer os.RemoveAll(path)
+
+ checkFatal(t, err)
+}