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
b103370d2b
commit
fa189949a6
1 file changed
+2
-1
@@ -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