feat: improve download anonymized repository

This commit is contained in:
tdurieux committed 2024-05-06 11:52:32 +02:00
1 parent 93606a5c39
commit dcf483ea03
5 files changed
+145 -40

No files matched your search

+2 -1
View File
@@ -194,7 +194,8 @@ export default class GitHubStream extends GitHubBase {
});
output.push(...this.tree2Tree(data.tree, parentPath));
} catch (error) {
if ((error as any).status == 404) {
console.log(error);
if ((error as any).status == 409 || (error as any).status == 404) {
// empty repo
data = { tree: [] };
} else {