4a988c46609c4c2d32240092899ae0aae45b11a6

Author
thinszx <1217641779@qq.com>
Committer
GitHub <noreply@github.com>
Date

Message

fix(updater): change remote using deprecated `git:` protocol (#10779)

Diff

 1diff --git a/tools/upgrade.sh b/tools/upgrade.sh
 2index b6cb10b5af7579dfad598f3089debc2c5e81946f..afc6a98ddf2b3e50f7938ca92cbdb6393a9c3a0a 100755
 3--- a/tools/upgrade.sh
 4+++ b/tools/upgrade.sh
 5@@ -164,6 +164,10 @@ git remote -v | while read remote url extra; do
 6   git@github.com:robbyrussell/oh-my-zsh(|.git))
 7     git remote set-url "$remote" "git@github.com:ohmyzsh/ohmyzsh.git"
 8     break ;;
 9+  # Update out-of-date "unauthenticated git protocol on port 9418" to https
10+  git://github.com/robbyrussell/oh-my-zsh(|.git))
11+    git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
12+    break ;;
13   esac
14 done
15