mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-05 21:27:59 +02:00
fix: handle empty repo
This commit is contained in:
@@ -92,6 +92,9 @@ export default class GitHubStream extends GitHubBase implements SourceBase {
|
|||||||
recursive: "1",
|
recursive: "1",
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
if (error.status == 409 && error.message == "Git Repository is empty.") {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
await this.repository.resetSate("error", "repo_not_accessible");
|
await this.repository.resetSate("error", "repo_not_accessible");
|
||||||
throw new AnonymousError("repo_not_accessible", {
|
throw new AnonymousError("repo_not_accessible", {
|
||||||
httpStatus: error.status,
|
httpStatus: error.status,
|
||||||
|
|||||||
Reference in New Issue
Block a user