mirror of
https://github.com/stablyai/orca.git
synced 2026-10-14 00:02:42 +00:00
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:
@@ -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 () => {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user