mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
BOARD-genimage: omit error output from git cmd
use `--always` opt for `git describe`
This commit is contained in:
@@ -9,7 +9,7 @@ SELFDIR=$(dirname $(realpath ${0}))
|
|||||||
|
|
||||||
# Generate CFW release tag, status and append iteration count
|
# Generate CFW release tag, status and append iteration count
|
||||||
if test $(git tag | wc -l) -ne 0; then
|
if test $(git tag | wc -l) -ne 0; then
|
||||||
BR2_TAG="$(git describe --tags --abbrev=0)"
|
BR2_TAG="$(git describe --tags --always --abbrev=0)"
|
||||||
BR2_ITERATION="$(git rev-list --count ${BR2_TAG}..HEAD)"
|
BR2_ITERATION="$(git rev-list --count ${BR2_TAG}..HEAD)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user