From d85c9a23dd5d5f23ce0f418e315aca869bd5619c Mon Sep 17 00:00:00 2001 From: "Joseph.Rawlings" Date: Wed, 3 Dec 2025 21:14:36 -0500 Subject: [PATCH] fix: prevent empty commits in git push script by checking for staged changes --- gitpush.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitpush.sh b/gitpush.sh index e269aefb7..d298c877b 100755 --- a/gitpush.sh +++ b/gitpush.sh @@ -15,7 +15,7 @@ STAGES=( COMMANDS=( "git add ." - "git commit -m \"Manual Push\"" + "git diff --cached --quiet && exit 0; git commit -m \"Manual Push\"" "git push" )