Skip to content

Commit 718f985

Browse files
committed
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 src-d#1138 Signed-off-by: Jongmin Kim <[email protected]>
1 parent f22c6b9 commit 718f985

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

worktree_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ func (s *RepositorySuite) TestPullAdd(c *C) {
248248
ExecuteOnPath(c, path,
249249
"touch foo",
250250
"git add foo",
251+
"git config user.email [email protected]",
252+
"git config user.name foo",
251253
"git commit -m foo foo",
252254
)
253255

0 commit comments

Comments
 (0)