diff options
author | Eric Harney <eharney@redhat.com> | 2019-09-10 11:12:59 -0400 |
---|---|---|
committer | Eric Harney <eharney@redhat.com> | 2019-09-13 10:00:51 -0400 |
commit | ddb42e3a0fb4ce39e30f945756a2bad2b91c4a99 (patch) | |
tree | a7a4b5aad6c6d970e2f9dae6e4fb577591d54984 /tools | |
parent | ef35cffd790f39f79e9995373cd032424272654d (diff) | |
download | cinder-ddb42e3a0fb4ce39e30f945756a2bad2b91c4a99.tar.gz |
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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/coding-checks.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |