fix: prevent empty commits in git push script by checking for staged changes
This commit is contained in:
@@ -15,7 +15,7 @@ STAGES=(
|
|||||||
|
|
||||||
COMMANDS=(
|
COMMANDS=(
|
||||||
"git add ."
|
"git add ."
|
||||||
"git commit -m \"Manual Push\""
|
"git diff --cached --quiet && exit 0; git commit -m \"Manual Push\""
|
||||||
"git push"
|
"git push"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user