fix: handle empty repository

This commit is contained in:
tdurieux
2024-04-26 13:48:32 +01:00
parent 8712746e93
commit a86e050f8b
7 changed files with 37 additions and 12 deletions

View File

@@ -25,6 +25,7 @@ router.post("/", async (req: express.Request, res: express.Response) => {
commit: commit,
getToken: () => token,
});
console.log(`[FILE] ${repoId}/${filePath}`);
const content = await source.getFileContentCache(
filePath,
repoId,