Skip to content

Commit

Permalink
Fix spellcheck for commit messages
Browse files Browse the repository at this point in the history
It was failing in CI as

fatal: ambiguous argument 'main..': unknown revision or path not in the working tree.

Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje authored and simo5 committed May 21, 2024
1 parent 99ff04e commit 69968cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/codespell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69968cf

Please sign in to comment.