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 bb8b862d45817d5ad29b8024e72ea959ebe2caa1 Author: Bernard Ogden bernie.ogden@linaro.org Date: Wed Jul 29 17:26:51 2015 +0200
Allow user to override 'local changes' check
Change-Id: I02f150da61b1867f284210e17102956fad40d661 --- config/bench/fs/makefs.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/config/bench/fs/makefs.sh b/config/bench/fs/makefs.sh index 976b23e..67806f7 100755 --- a/config/bench/fs/makefs.sh +++ b/config/bench/fs/makefs.sh @@ -10,7 +10,13 @@ if git status -sb --porcelain | head -n1 | grep -q ']$'; then exit 1 elif test x"`git status -sb --porcelain | sed 1d`" != x; then echo "Repository has local changes" >&2 - exit 1 + REPLY= + while ! echo "${REPLY}" | grep -qi [yn]; do + read -sn1 -p "Continue anyway? (y/n) " >&2 + done + if test x"${REPLY,,}" = xn; then + exit 1 + fi fi
#All of these variables MUST be defined and non-empty