diff --git a/dev/flake.nix b/dev/flake.nix index ab4a864f..0c51e565 100644 --- a/dev/flake.nix +++ b/dev/flake.nix @@ -44,13 +44,16 @@ text = '' default_branch=$(git remote show origin | grep 'HEAD branch' | cut -d' ' -f5) + # Get the latest commit on the default branch + latest_default_commit=$(git rev-parse origin/"$default_branch") + commit_count=2 if [ "$commit_count" -eq 0 ]; then echo "No commits to check between $default_branch and HEAD." else echo "Checking $commit_count commit(s)..." - cz check --rev-range "$default_branch"..HEAD + cz check --rev-range "$latest_default_commit"..HEAD fi ''; };