Browse Source

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

thinszx 2 years ago
parent
commit
4a988c4660
1 changed files with 4 additions and 0 deletions
  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@github.com:robbyrussell/oh-my-zsh(|.git))
     git remote set-url "$remote" "git@github.com:ohmyzsh/ohmyzsh.git"
     git remote set-url "$remote" "git@github.com:ohmyzsh/ohmyzsh.git"
     break ;;
     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
   esac
 done
 done