Skip to content

Commit

Permalink
Fix bug where fetching linkable repos for a connection uses location …
Browse files Browse the repository at this point in the history
…associated with the backend instead of the resource itself.
  • Loading branch information
taeold committed Dec 13, 2023
1 parent 91b091f commit 02078a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/features/apphosting/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function promptRepositoryUri(
): Promise<{ remoteUri: string; connection: gcb.Connection }> {
const remoteUriToConnection: Record<string, gcb.Connection> = {};
for (const conn of connections) {
const { id } = parseConnectionName(conn.name)!;
const { location, id } = parseConnectionName(conn.name)!;
const resp = await gcb.fetchLinkableRepositories(projectId, location, id);
if (resp.repositories && resp.repositories.length > 0) {
for (const repo of resp.repositories) {
Expand Down

0 comments on commit 02078a3

Please sign in to comment.