mirror of https://github.com/xemu-project/xemu.git
build: Use commit hash if branch cannot be identified
This commit is contained in:
parent
624cf97095
commit
8604d7e41e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue