Get rid of pre-commit since it does not account for hunks

This commit is contained in:
Omar Brikaa 2022-06-30 13:18:50 +02:00
parent 0ea073f6d2
commit 0e5d3b56a1
1 changed files with 0 additions and 9 deletions

9
piston
View File

@ -14,13 +14,6 @@ docker_compose(){
fi 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 case $1 in
help) help)
echo "=== Piston Management ===" echo "=== Piston Management ==="
@ -66,14 +59,12 @@ case $1 in
restart) docker_compose restart ;; restart) docker_compose restart ;;
start) start)
init_precommit
docker_compose up -d docker_compose up -d
;; ;;
stop) docker_compose down ;; stop) docker_compose down ;;
bash) docker_compose exec api /bin/bash ;; bash) docker_compose exec api /bin/bash ;;
rebuild) rebuild)
init_precommit
docker_compose build && docker_compose up -d docker_compose build && docker_compose up -d
;; ;;