mirror of
https://github.com/moby/buildkit.git
synced 2026-08-03 06:10:26 +00:00
Validate the default branch returned by ls-remote before using it, so a
malicious remote cannot advertise a HEAD symref such as that would
later be reused as an argument to other git commands.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit a838953fe8776d68379d32a7af0776d538215763)
(cherry picked from commit eb63c321e8)
84 KiB
84 KiB