summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Marquess <pmqs@outlook.com>2026-02-15 12:11:33 +0000
committerHans Kristian Rosbach <hk-github@circlestorm.org>2026-02-17 16:58:07 +0100
commit5f5067003a0bb8367a9d4cfe2542fece61b2d7c0 (patch)
tree08acda1593e2acc445cdd9dbf89338a00d72ad7c
parent76288b449aa97679abe59f3c32216be060702486 (diff)
downloadProject-Tick-5f5067003a0bb8367a9d4cfe2542fece61b2d7c0.tar.gz
Project-Tick-5f5067003a0bb8367a9d4cfe2542fece61b2d7c0.zip
Take account of use-case where there is an empty git tree object when reading the BASE_SHA
-rw-r--r--.github/workflows/lint.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 6d90aad439..3d1e3ad44a 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -13,5 +13,7 @@ jobs:
- name: Whitespace errors
run: |
+ BASE_SHA="${{ github.event.pull_request.base.sha }}"
+ BASE_SHA="${BASE_SHA:-4b825dc642cb6eb9a060e54bf8d69288fbee4904}"
git config core.whitespace blank-at-eol
- git diff --color --check ${{ github.event.pull_request.base.sha }} -- './*' ':!*.patch'
+ git diff --color --check "$BASE_SHA" -- './*' ':!*.patch \ No newline at end of file