mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02: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:
4
Makefile
4
Makefile
@@ -272,7 +272,9 @@ black: reports
|
|||||||
@(set -o pipefail && $@ $(BLACK_ARGS) awx awxkit awx_collection | tee reports/$@.report)
|
@(set -o pipefail && $@ $(BLACK_ARGS) awx awxkit awx_collection | tee reports/$@.report)
|
||||||
|
|
||||||
.git/hooks/pre-commit:
|
.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
|
@chmod +x .git/hooks/pre-commit
|
||||||
|
|
||||||
genschema: reports
|
genschema: reports
|
||||||
|
|||||||
Reference in New Issue
Block a user