Use python instead of slow shell script on verify-commits

This commit is contained in:
Chun Kuan Lee committed 2018-06-12 14:48:02 +00:00
1 parent e24bf1ce18
commit e5b2cd8e75
7 files changed
+169 -161

No files matched your search

+2 -2
View File
@@ -12,9 +12,9 @@ while read LINE; do
if [ "$4" != "refs/heads/master" ]; then
continue
fi
if ! ./contrib/verify-commits/verify-commits.sh $3 > /dev/null 2>&1; then
if ! ./contrib/verify-commits/verify-commits.py $3 > /dev/null 2>&1; then
echo "ERROR: A commit is not signed, can't push"
./contrib/verify-commits/verify-commits.sh
./contrib/verify-commits/verify-commits.py
exit 1
fi
done < /dev/stdin