From 80aff44339f88cbb881779c835b6e4f43b4b8e21 Mon Sep 17 00:00:00 2001 From: John Ko <279736+johnko@users.noreply.github.com> Date: Sat, 10 Jan 2026 03:43:16 -0500 Subject: [PATCH] Add .github/git-has-uncommited-changes.sh --- .github/git-has-uncommited-changes.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/git-has-uncommited-changes.sh b/.github/git-has-uncommited-changes.sh index d26e0de..371a9d3 100644 --- a/.github/git-has-uncommited-changes.sh +++ b/.github/git-has-uncommited-changes.sh @@ -3,7 +3,4 @@ set -euxo pipefail git version -FILE_CHANGED_COUNT=$(git status -s | wc -l | awk '{print $1}') -if [[ $FILE_CHANGED_COUNT -gt 0 ]]; then - exit 1 -fi +git diff --exit-code