Signed-off-by: Anders Roxell <[email protected]>
---
scripts/git_hash.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh
index e15094e..fc0b057 100755
--- a/scripts/git_hash.sh
+++ b/scripts/git_hash.sh
@@ -9,7 +9,8 @@ ROOTDIR=${1}
CUSTOM_STR=${CUSTOM_STR:-https://git.linaro.org/lng/odp.git}
if [ -d ${ROOTDIR}/.git ]; then
hash=$(git --git-dir=${ROOTDIR}/.git describe | tr -d "\n")
- if git --git-dir=${ROOTDIR}/.git diff-index --name-only HEAD
&>/dev/null ; then
+ if [[ $(git --git-dir=${ROOTDIR}/.git diff --shortstat 2> /dev/null \
+ | tail -n1) != "" ]]; then
dirty=-dirty
fi
--
2.1.4
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp