From e18411b1f39c07d1dfbe74b2d825f1c15edaeaab Mon Sep 17 00:00:00 2001 From: Daniel Young Lee Date: Wed, 6 Dec 2023 13:15:35 +0900 Subject: [PATCH] Allow GCB repos to be reused in backend. --- src/init/features/frameworks/repo.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/init/features/frameworks/repo.ts b/src/init/features/frameworks/repo.ts index f027a1cdd55e..1db075bcc62b 100644 --- a/src/init/features/frameworks/repo.ts +++ b/src/init/features/frameworks/repo.ts @@ -273,10 +273,6 @@ export async function getOrCreateRepository( let repo: gcb.Repository; try { repo = await gcb.getRepository(projectId, location, connectionId, repositoryId); - const repoSlug = extractRepoSlugFromUri(repo.remoteUri); - if (repoSlug) { - throw new FirebaseError(`${repoSlug} has already been linked.`); - } } catch (err: unknown) { if ((err as FirebaseError).status === 404) { const op = await gcb.createRepository(