mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
Merge pull request #10221 from jbradberry/check-for-pre-commit-script
Add a check for the existence of pre-commit.sh SUMMARY so that you don't get stuck when working on branches that don't have this yet. ISSUE TYPE Bugfix Pull Request COMPONENT NAME API AWX VERSION Reviewed-by: Christian Adams <rooftopcellist@gmail.com>
This commit is contained in:
4
Makefile
4
Makefile
@@ -272,7 +272,9 @@ black: reports
|
||||
@(set -o pipefail && $@ $(BLACK_ARGS) awx awxkit awx_collection | tee reports/$@.report)
|
||||
|
||||
.git/hooks/pre-commit:
|
||||
@echo "./pre-commit.sh" > .git/hooks/pre-commit
|
||||
@echo "if [ -x pre-commit.sh ]; then" > .git/hooks/pre-commit
|
||||
@echo " ./pre-commit.sh;" >> .git/hooks/pre-commit
|
||||
@echo "fi" >> .git/hooks/pre-commit
|
||||
@chmod +x .git/hooks/pre-commit
|
||||
|
||||
genschema: reports
|
||||
|
||||
Reference in New Issue
Block a user