Skip to content

Commit 9714a6f

Browse files
authored
adds 404 check when fetching repo public key (firebase#5643)
1 parent 37cf3c5 commit 9714a6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
- The hosting emulator integration with web frameworks now has improved support for HMR and dev-tools. (#5582)
2+
- Fixes an issue where `init hosting:github` would hang if it could not access a repository's public key. (#5317)

src/init/features/hosting/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ async function promptForRepo(
418418
key = body.key;
419419
keyId = body.key_id;
420420
} catch (e: any) {
421-
if (e.status === 403) {
421+
if ([403, 404].includes(e.status)) {
422422
logger.info();
423423
logger.info();
424424
logWarning(

0 commit comments

Comments
 (0)