summaryrefslogtreecommitdiff
path: root/index_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'index_test.go')
-rw-r--r--index_test.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/index_test.go b/index_test.go
index fe6fb87..9828d0f 100644
--- a/index_test.go
+++ b/index_test.go
@@ -4,23 +4,8 @@ import (
"os"
"runtime"
"testing"
- "io/ioutil"
)
-func createTestRepo(t *testing.T) *Repository {
- // figure out where we can create the test repo
- path, err := ioutil.TempDir("", "git2go")
- checkFatal(t, err)
- repo, err := InitRepository(path, false)
- checkFatal(t, err)
-
- tmpfile := "README"
- err = ioutil.WriteFile(path + "/" + tmpfile, []byte("foo\n"), 0644)
- checkFatal(t, err)
-
- return repo
-}
-
func TestCreateRepoAndStage(t *testing.T) {
repo := createTestRepo(t)
defer os.RemoveAll(repo.Workdir())