The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): cover managed git candidate wiring
Yuan Lie8742df4e43b
diff --git a/apps/desktop/electron/git-binary-candidates.test.ts b/apps/desktop/electron/git-binary-candidates.test.tsindex 8dab355f7d9..fee81f33f4f 100644--- a/apps/desktop/electron/git-binary-candidates.test.ts+++ b/apps/desktop/electron/git-binary-candidates.test.ts@@ -97,6 +97,19 @@ describe('windowsGitCandidates (#61494)', () => {assert.equal(candidates.find(fs.existsSync), ugitGit)})+ test('selects PM-managed Git before the hermes-bundled portable git', () => {+ const managed = path.join(LAD, 'hermes', 'tools', 'git-2.53.0+3-win32-x64', 'cmd', 'git.exe')+ const portable = path.join(env.localAppData, 'hermes', 'git', 'cmd', 'git.exe')+ const fs = fakeFs(+ { [path.join(LAD, 'hermes', 'tools')]: ['git-2.53.0+3-win32-x64'] },+ [managed, portable]+ )++ const candidates = windowsGitCandidates(env, fs)++ assert.equal(candidates.find(fs.existsSync), managed)+ })+test('still prefers the hermes-bundled portable git over UGit', () => {const ugitGit = ugitGitExe('5.50.1')const portable = path.join(env.localAppData, 'hermes', 'git', 'cmd', 'git.exe')