From c724ac1f3c82cb760b3d748f2b2f97efa8e9fda0 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Sun, 15 Oct 2017 10:56:36 +0200 Subject: [PATCH] board_status: Abort if repository is in a dirty state Run `git status` to let the user spot what is going on. Change-Id: I154d964354872f922cd22b05a5d2231ca2504f25 Signed-off-by: Paul Menzel Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/22016 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- util/board_status/board_status.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh index 83a7200d64..13c58e1740 100755 --- a/util/board_status/board_status.sh +++ b/util/board_status/board_status.sh @@ -340,6 +340,13 @@ timestamp=$($getrevision -t) results="${vendor}/${mainboard}/${tagged_version}/${timestamp}" +if [ -n "$(echo $tagged_version | grep dirty)" ]; then + echo "The repository is in a dirty state. Please see the output of" + echo "'git status' below." + git status + exit $EXIT_FAILURE +fi + echo "Temporarily placing output in ${tmpdir}/${results}" mkdir -p "${tmpdir}/${results}"