now everything works
This commit is contained in:
parent
841f4ac74d
commit
8663dc3189
2 changed files with 11 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue