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 471e32c commit e18411b
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 @@ -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(
Expand Down

0 comments on commit e18411b

Please sign in to comment.