aboutsummaryrefslogtreecommitdiff
path: root/scripts/git_hash.sh
blob: c9f1faf57f0255b68157896826e711998fea6671 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

repo=https://git.linaro.org/lng/odp.git
hash=$(git describe | tr -d "\n")
if git diff-index --name-only HEAD &>/dev/null ; then
	dirty=-dirty
fi

echo -n "'${repo}' (${hash}${dirty})"