Skip to content

Commit e4158cf

Browse files
authored
Fix bug where connection single repository properly prompted. (#6596)
1 parent 98ad871 commit e4158cf

File tree

1 file changed

+1
-2
lines changed
  • src/init/features/frameworks

1 file changed

+1
-2
lines changed

src/init/features/frameworks/repo.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,12 @@ async function promptRepositoryUri(
137137
for (const conn of connections) {
138138
const { id } = parseConnectionName(conn.name)!;
139139
const resp = await gcb.fetchLinkableRepositories(projectId, location, id);
140-
if (resp.repositories && resp.repositories.length > 1) {
140+
if (resp.repositories && resp.repositories.length > 0) {
141141
for (const repo of resp.repositories) {
142142
remoteUriToConnection[repo.remoteUri] = conn;
143143
}
144144
}
145145
}
146-
147146
const choices = Object.keys(remoteUriToConnection).map((remoteUri: string) => ({
148147
name: extractRepoSlugFromUri(remoteUri) || remoteUri,
149148
value: remoteUri,

0 commit comments

Comments
 (0)