mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-28 10:54:30 +01:00
fix: write the graph's tree copy blob by blob so .gitattributes can't rewrite or hide files
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
8750d33ef0
commit
89d4728ecf
3 files changed
+25
-10
No files matched your search
+1
-1
@@ -18,7 +18,7 @@ The recorder runs `strace -f -y -qq -v` with `openat, open, execve, execveat, ge
|
||||
|
||||
## What the key covers
|
||||
|
||||
`lib/test-impact/key.ts` reads everything at the given tree through git, never from the working tree. The graph runs over a checkout of that tree made through a private index, so the tree's own `.gitattributes` can't hide files the way `export-ignore` would in `git archive`. The key is a sha256 over:
|
||||
`lib/test-impact/key.ts` reads everything at the given tree through git, never from the working tree. The graph runs over a copy of that tree written blob by blob, with no attribute processing, so the tree's own `.gitattributes` (`export-ignore`, `working-tree-encoding`, filters) can't hide an import from it. The key is a sha256 over:
|
||||
|
||||
- each traced path's bytes (read with `git cat-file --batch`), or that it is a directory, or that it is absent;
|
||||
- the names in each traced directory listing, at the tree;
|
||||
|
||||
Reference in new issue
Block a user