From 1d48863b856d7a82412e1b47d87e30d0378b851f Mon Sep 17 00:00:00 2001 From: ethernet Date: Wed, 15 Jul 2026 11:34:59 -0400 Subject: [PATCH] fix(desktop): inline git identity in worktree tracking test for CI CI runners have no global git identity. The remote repo seed commit needs inline -c user.email/user.name flags, matching the pattern already used by ensureGitRepo. --- apps/desktop/electron/git-worktree-ops.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/desktop/electron/git-worktree-ops.test.ts b/apps/desktop/electron/git-worktree-ops.test.ts index be40e9fe5874a..63378c2935864 100644 --- a/apps/desktop/electron/git-worktree-ops.test.ts +++ b/apps/desktop/electron/git-worktree-ops.test.ts @@ -271,9 +271,10 @@ test('addWorktree: base origin/main does not set up upstream tracking', async () const git = (...args) => execFileSync('git', args, { cwd: cloneDir }).toString().trim() try { - // Seed the remote with a commit on main. + // Seed the remote with a commit on main. Inline identity so it works + // on CI runners with no global git config. execFileSync('git', ['init', '-b', 'main', remoteDir]) - execFileSync('git', ['-C', remoteDir, 'commit', '--allow-empty', '-m', 'root']) + execFileSync('git', ['-C', remoteDir, '-c', 'user.email=hermes@localhost', '-c', 'user.name=Hermes', 'commit', '--allow-empty', '-m', 'root']) // Clone so origin/main exists as a remote-tracking ref. execFileSync('git', ['clone', remoteDir, cloneDir])