From ddb42e3a0fb4ce39e30f945756a2bad2b91c4a99 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Tue, 10 Sep 2019 11:12:59 -0400 Subject: 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 --- tools/coding-checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/coding-checks.sh b/tools/coding-checks.sh index 71e2195c6..9665066bb 100755 --- a/tools/coding-checks.sh +++ b/tools/coding-checks.sh @@ -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 -- cgit v1.2.1