Fix pylint env for ancient versions of git

On el7 w/git 1.8.3, "tox -e pylint" just returns:

fatal: ambiguous argument '*.py': unknown revision
or path not in the working tree.

Before this change.

Change-Id: I63bf975f85dda88ab5e76d8df46ba9a176bb2a3b
This commit is contained in:
Eric Harney 2019-09-10 11:12:59 -04:00
parent ef35cffd79
commit ddb42e3a0f

View File

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