From 69968cfffc3ff99d87ae720e95b44fafe65e5e86 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 21 May 2024 10:07:16 +0200 Subject: [PATCH] Fix spellcheck for commit messages It was failing in CI as fatal: ambiguous argument 'main..': unknown revision or path not in the working tree. Signed-off-by: Jakub Jelen --- .github/codespell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/codespell.sh b/.github/codespell.sh index 3266aabc..7c3c9038 100755 --- a/.github/codespell.sh +++ b/.github/codespell.sh @@ -7,7 +7,7 @@ echo "Running codespell on source code..." $CODESPELL --skip **/bindings.rs src || result=1 # assuming the main branch is there -for COMMIT in $(git rev-list main..); do +for COMMIT in $(git rev-list main.. --); do echo "Running codespell on commit message of $COMMIT..." git show --format=%B -s "$COMMIT" | $CODESPELL - || result=1 done