mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-30 14:09:33 +02:00
fix: protect file list download
This commit is contained in:
1 parent
c2a885fdaa
commit
9a48aa1fa2
1 file changed
+5
@@ -191,11 +191,16 @@ export default class GitHubStream extends GitHubBase implements SourceBase {
|
||||
}
|
||||
await Promise.all(promises);
|
||||
} else {
|
||||
try {
|
||||
const data = await this.getGHTree(sha, { recursive: true });
|
||||
this.tree2Tree(data.tree, truncatedTree, parentPath);
|
||||
if (data.truncated) {
|
||||
this.repository.model.truckedFileList = true;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
this.repository.model.truckedFileList = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user