This is an automated email from the git hooks/post-receive script.
bernie.ogden pushed a commit to branch bernie/fs in repository toolchain/abe.
commit 5e197dd89e4482982d4d9e302e2bbe150fca2b0a Author: Bernard Ogden bernie.ogden@linaro.org Date: Wed Jul 29 13:41:54 2015 +0200
Add check that HEAD maps to something meaningful upstream
Change-Id: I2b82e9698e2e0fbc06990ca1d7608ecd3b0e93da --- config/bench/fs/makefs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/config/bench/fs/makefs.sh b/config/bench/fs/makefs.sh index 2c27503..2e87bc0 100755 --- a/config/bench/fs/makefs.sh +++ b/config/bench/fs/makefs.sh @@ -3,6 +3,16 @@ set -e set -u set -o pipefail
+#Check that we are in a clean state w.r.t. source control +#Required to guarantee that the hash is valid +if git status -sb --porcelain | head -n1 | grep -q ']$'; then + echo "Committed state out of sync with upstream" >&2 + exit 1 +elif test x"`git status -sb --porcelain | sed 1d`" != x; then + echo "Repository has local changes" >&2 + exit 1 +fi + #All of these variables MUST be defined and non-empty export stamp=20150607T041354Z export suite=jessie