mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Improve untracked file check
This commit is contained in:
parent
995a73fa80
commit
c9515ed880
1 changed files with 6 additions and 4 deletions
10
posix.mak
10
posix.mak
|
@ -42,10 +42,12 @@ install: all
|
|||
# Checks that all files have been committed and no temporary, untracked files exist.
|
||||
# See: https://github.com/dlang/dmd/pull/7483
|
||||
check-clean-git:
|
||||
@git diff-index --quiet HEAD -- || \
|
||||
(echo "ERROR: Found the following residual temporary files."; \
|
||||
echo 'ERROR: Temporary files should be stored in `test_results` or explicitly removed.'; \
|
||||
git status -s ; exit 1)
|
||||
@if [ -n "$$(git status --porcelain)" ] ; then \
|
||||
echo "ERROR: Found the following residual temporary files."; \
|
||||
echo 'ERROR: Temporary files should be stored in `test_results` or explicitly removed.'; \
|
||||
git status -s ; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
style:
|
||||
@echo "To be done"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue