Skip to content

Commit de4e336

Browse files
authored
Fix elusive missing post commit action (#8111)
1 parent 5c905bd commit de4e336

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/github/folderRepositoryManager.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,10 @@ export class FolderRepositoryManager extends Disposable {
489489
const activeRemotes = await this.getActiveRemotes();
490490
const isAuthenticated = this.checkForAuthMatch(activeRemotes);
491491
if (this.credentialStore.isAnyAuthenticated() && (activeRemotes.length === 0)) {
492-
const areAllNeverGitHub = (await this.computeAllUnknownRemotes()).every(remote => GitHubManager.isNeverGitHub(vscode.Uri.parse(remote.normalizedHost).authority));
493-
if (areAllNeverGitHub) {
492+
const allUnknownRemotes = await this.computeAllUnknownRemotes();
493+
const areAllNeverGitHub = allUnknownRemotes.every(remote => GitHubManager.isNeverGitHub(vscode.Uri.parse(remote.normalizedHost).authority));
494+
if ((allUnknownRemotes.length > 0) && areAllNeverGitHub) {
495+
Logger.appendLine('No GitHub remotes found and all remotes are marked as never GitHub.', this.id);
494496
this.state = ReposManagerState.RepositoriesLoaded;
495497
return true;
496498
}

0 commit comments

Comments
 (0)