GitHub - update remote order for git blame actions (#257816)

This commit is contained in:
Ladislau Szomoru 2025-07-25 12:06:47 +00:00 committed by GitHub
parent 2f09f40b0b
commit 90fcd05e94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -94,9 +94,9 @@ export function getRepositoryDefaultRemoteUrl(repository: Repository): string |
return undefined;
}
// upstream -> origin -> first
const remote = remotes.find(remote => remote.name === 'upstream')
?? remotes.find(remote => remote.name === 'origin')
// origin -> upstream -> first
const remote = remotes.find(remote => remote.name === 'origin')
?? remotes.find(remote => remote.name === 'upstream')
?? remotes[0];
return remote.fetchUrl;