mirror of
https://github.com/moby/buildkit.git
synced 2026-08-09 09:11:45 +00:00
Normalize Git subdir fragments and validate checkout subdir components so each segment must be a real directory, preventing traversal and symlink escapes. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> (cherry picked from commit 8c994eb561a2646b35352e5663afecd225306214)