addet more failproof gwip

This commit is contained in:
pika 2025-05-24 02:52:35 +02:00
parent db7ac16675
commit 4c6a312761

View file

@ -473,7 +473,7 @@ __git__() {
# Check if there are any changes on the remote branch # Check if there are any changes on the remote branch
if git diff --quiet "$branch" "origin/$branch"; then if git diff --quiet "$branch" "origin/$branch"; then
if [ -n "$2" ]; then if [ -n $2 ]; then
local commit_files="${1:-.}" local commit_files="${1:-.}"
local commit_message="${2:-wip}" local commit_message="${2:-wip}"
else else