From 0eb2587ca9b4cccb0602a4d585e75ea271c47f63 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 25 Dec 2025 23:06:57 +0900 Subject: modified bin/gitupdate --- mac/.local/bin/gitupdate | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mac') diff --git a/mac/.local/bin/gitupdate b/mac/.local/bin/gitupdate index 063a4cd..b36bfe8 100755 --- a/mac/.local/bin/gitupdate +++ b/mac/.local/bin/gitupdate @@ -76,7 +76,12 @@ else # Add and commit changes git add --all . git commit -m "$message" - git pull --rebase $git_current_remote "$branch" + if git remote $git_current_remote | grep -q origin; then + remote="origin" + else + remote=$(git remote $git_current_remote) + fi + git pull --rebase "$remote" "$branch" git remote | xargs -L1 git push --all fi -- cgit v1.2.3