mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-28 17:14:38 +00:00
The script assumed Git's traditional loose refs or packed-refs format.
When cloning with extensions.refstorage=reftable, neither .git/refs/*
nor .git/packed-refs exist, causing cmake configuration to fail.
Fall back to git rev-parse when file-based ref lookup fails.
(cherry picked from commit bdb72bb3f0)