summaryrefslogtreecommitdiff
path: root/tools/upgrade.sh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2019-11-21 02:26:18 +0100
committerRobby Russell <robby@planetargon.com>2019-11-20 17:26:18 -0800
commitb80b1a1e8b30e5f2a7c4977019cf56e72c434037 (patch)
tree9847981294bba8c4c1a547267b33a202a0c2dc06 /tools/upgrade.sh
parentbb10c979ef22b2c5242dc0348b3ea3a1bf9b731d (diff)
downloadzsh-b80b1a1e8b30e5f2a7c4977019cf56e72c434037.tar.gz
zsh-b80b1a1e8b30e5f2a7c4977019cf56e72c434037.tar.bz2
zsh-b80b1a1e8b30e5f2a7c4977019cf56e72c434037.zip
Actions to take after repository migration is complete (#8394)
* Change project URL from robbyrussell to ohmyzsh org * Update git remote to use ohmyzsh org repository
Diffstat (limited to 'tools/upgrade.sh')
-rw-r--r--tools/upgrade.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/upgrade.sh b/tools/upgrade.sh
index f64a0096e..55768cd6e 100644
--- a/tools/upgrade.sh
+++ b/tools/upgrade.sh
@@ -31,6 +31,12 @@ git config fsck.zeroPaddedFilemode ignore
git config fetch.fsck.zeroPaddedFilemode ignore
git config receive.fsck.zeroPaddedFilemode ignore
+# Update upstream remote to ohmyzsh org
+remote=$(git remote -v | awk '/https:\/\/github\.com\/robbyrussell\/oh-my-zsh\.git/{ print $1; exit }')
+if [[ -n "$remote" ]]; then
+ git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
+fi
+
printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
if git pull --rebase --stat origin master
then