2021-10-08 05:08:09 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
set -o pipefail
|
|
|
|
|
2021-11-01 05:41:53 +00:00
|
|
|
ZERO=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
|
2021-10-08 05:08:09 +00:00
|
|
|
GRADLE_EXEC="${GRADLE_EXEC:-./gradlew}"
|
|
|
|
|
2021-11-01 05:41:53 +00:00
|
|
|
while read local_ref local_oid remote_ref remote_oid; do
|
|
|
|
if [ "${local_oid}" != "${ZERO}" ]; then
|
|
|
|
"${GRADLE_EXEC}" spotlessCheck apiCheck
|
|
|
|
fi
|
|
|
|
done
|