Skip to content

Commit 90fcd05

Browse files
authored
GitHub - update remote order for git blame actions (microsoft#257816)
1 parent 2f09f40 commit 90fcd05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/github/src/util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ export function getRepositoryDefaultRemoteUrl(repository: Repository): string |
9494
return undefined;
9595
}
9696

97-
// upstream -> origin -> first
98-
const remote = remotes.find(remote => remote.name === 'upstream')
99-
?? remotes.find(remote => remote.name === 'origin')
97+
// origin -> upstream -> first
98+
const remote = remotes.find(remote => remote.name === 'origin')
99+
?? remotes.find(remote => remote.name === 'upstream')
100100
?? remotes[0];
101101

102102
return remote.fetchUrl;

0 commit comments

Comments
 (0)