Skip to content

Commit

Permalink
Allow GCB repos to be reused in backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Dec 6, 2023
1 parent 145dbbc commit bcecf85
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/init/features/frameworks/repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,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(
Expand Down

0 comments on commit bcecf85

Please sign in to comment.