mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-04-23 13:56:10 +02:00
feat: improve download anonymized repository
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user