From 718f985644c857b0f16041c17c7e55587fb8868a Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Tue, 30 Apr 2019 17:08:41 +0900 Subject: [PATCH] worktree: Set local user config for reproducible testing The test goes fail with git exit status 128 while committing when git config is not set globally or locally. Fixes #1138 Signed-off-by: Jongmin Kim --- worktree_test.go | 2 ++ 1 file changed, 2 insertions(+) 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", )