perf(git): reuse queries and stop canceled catalog scans (#24923)

* perf(git): reuse queries and stop canceled catalog scans

* refactor(git): check relay filesystem error codes
This commit is contained in:
Neil
2026-10-03 02:54:20 -07:00
committed by GitHub
parent bde1c09866
commit a40e5012f5
17 changed files with 798 additions and 32 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ describe('resolveGitHubReviewHeadRemote', () => {
expect(remote).toBe('origin')
expect(getGitHubApiRepositoryForRemoteMock).not.toHaveBeenCalled()
expect(getDefaultRemoteMock).toHaveBeenCalledWith('/repo', { wslDistro: 'Ubuntu' })
expect(getDefaultRemoteMock).toHaveBeenCalledWith('/repo', { wslDistro: 'Ubuntu' }, ['origin'])
})
it('prefers origin over other remotes on SSH repos when no identity resolves', async () => {
+1 -1
View File
@@ -49,5 +49,5 @@ export async function resolveGitHubReviewHeadRemote(args: {
if (args.connectionId) {
return pickPreferredGitRemote(remotes)
}
return getDefaultRemote(args.repoPath, args.localGitOptions ?? {})
return getDefaultRemote(args.repoPath, args.localGitOptions ?? {}, remotes)
}