Merge "Fix pylint env for ancient versions of git"

This commit is contained in:
Zuul
2019-10-14 20:56:59 +00:00
committed by Gerrit Code Review

View File

@@ -31,7 +31,7 @@ run_pylint() {
if [[ "$target" = *"all"* ]]; then if [[ "$target" = *"all"* ]]; then
files="cinder" files="cinder"
else else
files=$(git diff --name-only --diff-filter=ACMRU $target "*.py") files=$(git diff --name-only --diff-filter=ACMRU $target -- "*.py")
fi fi
if [ -n "${files}" ]; then if [ -n "${files}" ]; then