summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-04-23 09:56:20 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-04-23 09:56:20 -0400
commit4bf6d92ece1a9eb70dd888dd42fad44af666d390 (patch)
treeda4a002d154d1ccd0b413ae58042ae28207a9ca0
parent2de043af0d241f4fa83f1591ff88e7498f6cafb2 (diff)
parente36ca950f0bc83c844e3c368bb64845ea51f3ea2 (diff)
downloadopenshift-4bf6d92ece1a9eb70dd888dd42fad44af666d390.tar.gz
openshift-4bf6d92ece1a9eb70dd888dd42fad44af666d390.tar.bz2
openshift-4bf6d92ece1a9eb70dd888dd42fad44af666d390.tar.xz
openshift-4bf6d92ece1a9eb70dd888dd42fad44af666d390.zip
Merge pull request #183 from kwoodson/git_hooks
Testing hooks.
-rwxr-xr-xgit/pylint.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/git/pylint.sh b/git/pylint.sh
index e070fe7b2..286747565 100755
--- a/git/pylint.sh
+++ b/git/pylint.sh
@@ -5,8 +5,10 @@ OLDREV=$1
NEWREV=$2
TRG_BRANCH=$3
+PYTHON=/var/lib/jenkins/python27/bin/python
+
/usr/bin/git diff --name-only $OLDREV $NEWREV --diff-filter=ACM | \
grep ".py$" | \
- xargs -r -I{} pylint --rcfile ${WORKSPACE}/git/.pylintrc {}
+ xargs -r -I{} ${PYTHON} -m pylint --rcfile ${WORKSPACE}/git/.pylintrc {}
exit $?