mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Add a check for the existence of pre-commit.sh
so that you don't get stuck when working on branches that don't have this yet.
This commit is contained in:
parent
fb7c827bff
commit
c887f84a05
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user