Skip to content

Commit 4ce64fa

Browse files
Fix bare worktree test identity on CI
Co-authored-by: Andrew <andrewxhill@gmail.com>
1 parent 57b27f1 commit 4ce64fa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/app/test_helpers_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ func createBareCloneWorktree(t *testing.T) (string, string) {
4949

5050
worktreePath := filepath.Join(t.TempDir(), "main-worktree")
5151
runTestCommand(t, seedRoot, "git", "--git-dir", bareDir, "worktree", "add", worktreePath, "main")
52+
runTestCommand(t, worktreePath, "git", "config", "user.name", "Test User")
53+
runTestCommand(t, worktreePath, "git", "config", "user.email", "test@example.com")
5254

5355
return bareDir, worktreePath
5456
}

0 commit comments

Comments
 (0)