build: Use commit hash if branch cannot be identified

This commit is contained in:
Matt Borgerson 2021-05-18 03:46:50 -07:00 committed by mborgerson
parent 624cf97095
commit 8604d7e41e
1 changed files with 1 additions and 1 deletions

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)