summaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-25 23:06:57 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-25 23:06:57 +0900
commit0eb2587ca9b4cccb0602a4d585e75ea271c47f63 (patch)
tree9b73d7ab85cf8d84c643b742dd74937ef138d32b /mac
parent1dd4c28afbfd62e1947afa03162788b6e8974ed1 (diff)
modified bin/gitupdate
Diffstat (limited to 'mac')
-rwxr-xr-xmac/.local/bin/gitupdate7
1 files changed, 6 insertions, 1 deletions
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