now everything works

This commit is contained in:
pika 2025-05-26 15:26:54 +02:00
parent 841f4ac74d
commit 8663dc3189
2 changed files with 11 additions and 8 deletions

View file

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

@ -1 +1 @@
Subproject commit 2f2e83d1969ace629e766357f07b7e4fb5fd3f21
Subproject commit 485765f75123eb8f94663d3187d69c393934849e