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:
parent
ef35cffd79
commit
ddb42e3a0f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user