Skip to content

Commit

Permalink
🐛 Fix git-hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ABGEO committed Apr 20, 2021
1 parent 0944742 commit b4db4c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion hooks/git/application/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
#
# Written by Temuri Takalandze <[email protected]>, April 2021

docker-compose exec --workdir /var/www/html application_back sh -c '.husky/commit-msg'
docker exec -i "$(docker ps --filter name="_application_back" --format "{{ .ID }}")" \
sh -c 'cd /var/www/html && .husky/commit-msg'
3 changes: 2 additions & 1 deletion hooks/git/application/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
#
# Written by Temuri Takalandze <[email protected]>, April 2021

docker-compose exec --workdir /var/www/html application_back sh -c '.husky/pre-commit'
docker exec -i "$(docker ps --filter name="_application_back" --format "{{ .ID }}")" \
sh -c 'cd /var/www/html && .husky/pre-commit'
7 changes: 2 additions & 5 deletions hooks/git/engine/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@
#
# Written by Temuri Takalandze <[email protected]>, April 2021

docker-compose exec engine \
python -mpre_commit hook-impl \
--config=.pre-commit-config.yaml \
--hook-type=pre-commit \
--hook-dir /var/app
docker exec -i "$(docker ps --filter name="_engine" --format "{{ .ID }}")" \
sh -c 'python -mpre_commit hook-impl --config=.pre-commit-config.yaml --hook-type=pre-commit --hook-dir /var/app'

0 comments on commit b4db4c2

Please sign in to comment.