fix(#181): check if folder exists in S3

This commit is contained in:
tdurieux
2023-02-22 08:00:20 +01:00
parent 6caca33145
commit 7dbfdb3056
3 changed files with 15 additions and 3 deletions

View File

@@ -80,7 +80,11 @@ export default class GitHubStream extends GitHubBase implements SourceBase {
}
async getFiles() {
return this.getTree(this.branch.commit);
let commit = this.branch?.commit;
if (!commit && this.repository.model.source.commit) {
commit = this.repository.model.source.commit;
}
return this.getTree(commit);
}
private async getTree(