build: Use commit hash if branch cannot be identified

This commit is contained in:
Matt Borgerson
2021-05-18 04:04:48 -07:00
committed by mborgerson
parent 624cf97095
commit 8604d7e41e
+1 -1
View File
@@ -14,7 +14,7 @@ XEMU_COMMIT=$( \
XEMU_BRANCH=$( \
cd "$dir"; \
if test -e .git; then \
git symbolic-ref --short HEAD; \
git symbolic-ref --short HEAD || echo $XEMU_COMMIT; \
elif test -e XEMU_BRANCH; then \
cat XEMU_BRANCH; \
fi)