summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2022-01-23 08:00:00 +0000
committerDmitry V. Levin <ldv@altlinux.org>2022-01-23 08:00:00 +0000
commitb137f9fd0621a13545c707b6b69399c0a4b2a253 (patch)
treeede6650ea6ac33d94769711d6c0338c46f95a53a
parentf5a957ebe0245d451c9c61bc502ef1b6611e01d4 (diff)
downloadlinux-pam-git-ldv/ci-git-status.tar.gz
ci: add a git status checkldv/ci-git-status
* ci/run-build-and-tests.sh: Check that "git status" does not report any untracked files.
-rwxr-xr-xci/run-build-and-tests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh
index 070fc72a..b5398f04 100755
--- a/ci/run-build-and-tests.sh
+++ b/ci/run-build-and-tests.sh
@@ -86,3 +86,8 @@ case "${CHECK-}" in
make -k $j distcheck VERBOSE=${VERBOSE-}
;;
esac
+
+if git status --porcelain |grep '^?'; then
+ echo >&2 'git status reported untracked files'
+ exit 1
+fi