diff --git a/worktree_test.go b/worktree_test.go
index afedc9195..f01ef7798 100644
--- a/worktree_test.go
+++ b/worktree_test.go
@@ -248,6 +248,8 @@ func (s *RepositorySuite) TestPullAdd(c *C) {
 	ExecuteOnPath(c, path,
 		"touch foo",
 		"git add foo",
+                "git config user.email foo@example.com",
+                "git config user.name foo",
 		"git commit -m foo foo",
 	)