Skip to content

Commit f58191a

Browse files
committed
temp: Initial attempt to fix infinite loading on Windows
The this.dispatcher.getRepositoryForPath was added for multi-account support, but for some reason if we call it and don't follow up with a refresh, all git operations hang indefinitely. This is not a permanent fix, just to validate if it works in the field.
1 parent 79552ef commit f58191a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/lib/trampoline/trampoline-ui-helper.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ class TrampolineUIHelper {
120120

121121
public async getLoginForRepositoryPath(path: string): Promise<string | null> {
122122
const repo = await this.dispatcher.getRepositoryForPath(path)
123+
if (repo) {
124+
// TODO: Delete this line
125+
await this.dispatcher.refreshRepository(repo)
126+
}
123127
return repo?.login ?? null
124128
}
125129
}

0 commit comments

Comments
 (0)