Get rid of pre-commit since it does not account for hunks
This commit is contained in:
parent
0ea073f6d2
commit
0e5d3b56a1
9
piston
9
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
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue