mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-14 00:07:00 +01:00
feat: include public GitHub submodules in shared repositories (#914)
* feat: include public GitHub submodules in shared repositories * fix: preserve submodule access across token and document contexts
This commit is contained in:
1 parent
6099356e0e
commit
d0b217a448
17 files changed
+617
-87
No files matched your search
@@ -34,6 +34,7 @@ router.post(
|
||||
getToken: () => token,
|
||||
anonymizerOptions: { ...anonymizerOptions, repoId },
|
||||
contentOptions,
|
||||
submodules: req.body.submodules,
|
||||
},
|
||||
res
|
||||
);
|
||||
@@ -89,7 +90,7 @@ router.post("/", async (req: express.Request, res: express.Response) => {
|
||||
const content = await source.getFileContentCache(
|
||||
filePath,
|
||||
repoId,
|
||||
() => ({ sha: fileSha, size: fileSize })
|
||||
() => ({ sha: fileSha, size: fileSize, upstream: req.body.upstream })
|
||||
);
|
||||
if (res.destroyed || res.writableEnded) { content.destroy(); anonymizer.destroy(); return; }
|
||||
const mime = lookup(filePath);
|
||||
|
||||
Reference in new issue
Block a user