summaryrefslogtreecommitdiff
path: root/index_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'index_test.go')
-rw-r--r--index_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/index_test.go b/index_test.go
index c86c322..fe6fb87 100644
--- a/index_test.go
+++ b/index_test.go
@@ -23,7 +23,7 @@ func createTestRepo(t *testing.T) *Repository {
func TestCreateRepoAndStage(t *testing.T) {
repo := createTestRepo(t)
- defer os.RemoveAll(repo.Path())
+ defer os.RemoveAll(repo.Workdir())
idx, err := repo.Index()
checkFatal(t, err)