Skip to content

Commit

Permalink
Issue-32
Browse files Browse the repository at this point in the history
Setup overcommit only for git repo
  • Loading branch information
mohamed-abdul-fattah committed Mar 8, 2020
1 parent d37d6b1 commit 8ca6b38
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
set -e

composer install
overcommit --install
overcommit --sign

# Setup overcommit only for git repo
if git rev-parse --git-dir > /dev/null 2>&1; then
overcommit --install
overcommit --sign
fi


exec "$@"

0 comments on commit 8ca6b38

Please sign in to comment.