mirror of
https://github.com/moby/buildkit.git
synced 2026-08-09 01:01:08 +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)