Secure not to activate multiple venv in pre_commit hook ()

pull/51727/head
jan iversen 2021-06-10 19:27:24 +02:00 committed by GitHub
parent 4722fdf465
commit 453da10b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -15,6 +15,7 @@ my_path=$(git rev-parse --show-toplevel)
for venv in venv .venv .; do
if [ -f "${my_path}/${venv}/bin/activate" ]; then
. "${my_path}/${venv}/bin/activate"
break
fi
done