浏览代码

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

thinszx 2 年之前
父节点
当前提交
4a988c4660
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      tools/upgrade.sh

+ 4 - 0
tools/upgrade.sh

@@ -164,6 +164,10 @@ git remote -v | while read remote url extra; do
   git@github.com:robbyrussell/oh-my-zsh(|.git))
     git remote set-url "$remote" "git@github.com:ohmyzsh/ohmyzsh.git"
     break ;;
+  # Update out-of-date "unauthenticated git protocol on port 9418" to https
+  git://github.com/robbyrussell/oh-my-zsh(|.git))
+    git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
+    break ;;
   esac
 done