ci: Properly set COMMIT_RANGE in lint task

This commit is contained in:
MarcoFalke
2023-01-02 14:08:07 +01:00
parent d8bdee0fc8
commit fa5cbf2290
2 changed files with 2 additions and 2 deletions

View File

@@ -6,9 +6,8 @@
export LC_ALL=C
GIT_HEAD=$(git rev-parse HEAD)
if [ -n "$CIRRUS_PR" ]; then
COMMIT_RANGE="${CIRRUS_BASE_SHA}..$GIT_HEAD"
COMMIT_RANGE="HEAD~..HEAD"
echo
git log --no-merges --oneline "$COMMIT_RANGE"
echo