diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-12-25 23:06:57 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-12-25 23:06:57 +0900 |
| commit | 0eb2587ca9b4cccb0602a4d585e75ea271c47f63 (patch) | |
| tree | 9b73d7ab85cf8d84c643b742dd74937ef138d32b /mac | |
| parent | 1dd4c28afbfd62e1947afa03162788b6e8974ed1 (diff) | |
modified bin/gitupdate
Diffstat (limited to 'mac')
| -rwxr-xr-x | mac/.local/bin/gitupdate | 7 |
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 |
