mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
fix: protect file list download
This commit is contained in:
@@ -169,9 +169,10 @@ export default class GitHubStream extends GitHubBase implements SourceBase {
|
||||
`sha ${sha}, countFiles: ${count.file} countRequest: ${count.request}, parentPath: "${parentPath}"`
|
||||
);
|
||||
count.request++;
|
||||
const data = await this.getGHTree(sha, { recursive: false });
|
||||
let data = null;
|
||||
|
||||
try {
|
||||
data = await this.getGHTree(sha, { recursive: false });
|
||||
this.tree2Tree(data.tree, truncatedTree, parentPath);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user