Skip to content

Commit ea446b7

Browse files
committed
Fix bug where fetching linkable repos for a connection uses location associated with the backend instead of the resource itself.
1 parent 916fc34 commit ea446b7

File tree

1 file changed

+1
-1
lines changed
  • src/init/features/apphosting

1 file changed

+1
-1
lines changed

src/init/features/apphosting/repo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async function promptRepositoryUri(
135135
): Promise<{ remoteUri: string; connection: gcb.Connection }> {
136136
const remoteUriToConnection: Record<string, gcb.Connection> = {};
137137
for (const conn of connections) {
138-
const { id } = parseConnectionName(conn.name)!;
138+
const { location, id } = parseConnectionName(conn.name)!;
139139
const resp = await gcb.fetchLinkableRepositories(projectId, location, id);
140140
if (resp.repositories && resp.repositories.length > 0) {
141141
for (const repo of resp.repositories) {

0 commit comments

Comments
 (0)