From d6f6e024b3fca004dd93b07892a31470ce2c8cf3 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 13 Mar 2022 16:37:53 -0700 Subject: [PATCH] no git in CI --- update_requirements.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update_requirements.sh b/update_requirements.sh index dd5d93352..4925e48bb 100755 --- a/update_requirements.sh +++ b/update_requirements.sh @@ -47,5 +47,7 @@ pyenv rehash echo "pre-commit hooks install..." for f in .pre-commit-config.yaml */.pre-commit-config.yaml; do cd $DIR/$(dirname $f) - $RUN pre-commit install + if [ -e ".git" ]; then + $RUN pre-commit install + fi done