summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeordie Henderson <[email protected]>2016-09-16 21:49:54 -0700
committerGeordie Henderson <[email protected]>2016-09-16 21:49:54 -0700
commita16e24a99e0138e5ee897f80a53a97a2bd4b9c49 (patch)
tree83c07472229517f520e146239eb1b19587d9dfe5
parent241aa34d83b210ceaab7029c46e05794f2ea9797 (diff)
Write the index before writing the index tree in seedTestRepo test helper func
-rw-r--r--git_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/git_test.go b/git_test.go
index bdb6837..3385a72 100644
--- a/git_test.go
+++ b/git_test.go
@@ -58,6 +58,8 @@ func seedTestRepo(t *testing.T, repo *Repository) (*Oid, *Oid) {
checkFatal(t, err)
err = idx.AddByPath("README")
checkFatal(t, err)
+ err = idx.Write()
+ checkFatal(t, err)
treeId, err := idx.WriteTree()
checkFatal(t, err)