feat: remove cache of old repositories

This commit is contained in:
tdurieux committed 2022-10-24 15:12:18 +02:00
1 parent 2751d300e2
commit 6cab4365b0
3 files changed
+23 -4

No files matched your search

+3
View File
@@ -114,6 +114,9 @@ export default class GitHubDownload extends GitHubBase implements SourceBase {
}
async getFileContent(file: AnonymizedFile): Promise<Readable> {
if (await storage.exists(file.originalCachePath)) {
return storage.read(file.originalCachePath);
}
await this.download();
// update the file list
await this.repository.files({ force: true });