From 0e5d3b56a11a8a830488d8af8520e30446fd2cb5 Mon Sep 17 00:00:00 2001 From: Omar Brikaa Date: Thu, 30 Jun 2022 13:18:50 +0200 Subject: [PATCH] Get rid of pre-commit since it does not account for hunks --- piston | 9 --------- 1 file changed, 9 deletions(-) diff --git a/piston b/piston index fbd256d..fd83727 100755 --- a/piston +++ b/piston @@ -14,13 +14,6 @@ docker_compose(){ fi } -init_precommit() { - if [ $PISTON_ENV == "dev" ]; then - rm -f .git/hooks/pre-commit - ln -s "$PISTON_PATH/pre-commit" "$PISTON_PATH/.git/hooks/pre-commit" - fi -} - case $1 in help) echo "=== Piston Management ===" @@ -66,14 +59,12 @@ case $1 in restart) docker_compose restart ;; start) - init_precommit docker_compose up -d ;; stop) docker_compose down ;; bash) docker_compose exec api /bin/bash ;; rebuild) - init_precommit docker_compose build && docker_compose up -d ;;