diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2022-01-23 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2022-01-23 08:00:00 +0000 |
commit | b137f9fd0621a13545c707b6b69399c0a4b2a253 (patch) | |
tree | ede6650ea6ac33d94769711d6c0338c46f95a53a | |
parent | f5a957ebe0245d451c9c61bc502ef1b6611e01d4 (diff) | |
download | linux-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-x | ci/run-build-and-tests.sh | 5 |
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 |