disable set upstream

This commit is contained in:
linsilence 2022-05-25 11:59:22 +08:00
commit f53d7aed6d

View file

@ -156,20 +156,20 @@ if is_tty; then
fi fi
# Update upstream remote to ohmyzsh org # Update upstream remote to ohmyzsh org
git remote -v | while read remote url extra; do #git remote -v | while read remote url extra; do
case "$url" in #case "$url" in
https://github.com/snakewarhead/oh-my-zsh(|.git)) #https://github.com/snakewarhead/oh-my-zsh(|.git))
git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git" #git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git"
break ;; #break ;;
git@github.com:snakewarhead/oh-my-zsh(|.git)) #git@github.com:snakewarhead/oh-my-zsh(|.git))
git remote set-url upstream "git@github.com:ohmyzsh/ohmyzsh.git" #git remote set-url upstream "git@github.com:ohmyzsh/ohmyzsh.git"
break ;; #break ;;
# Update out-of-date "unauthenticated git protocol on port 9418" to https ## Update out-of-date "unauthenticated git protocol on port 9418" to https
git://github.com/snakewarhead/oh-my-zsh(|.git)) #git://github.com/snakewarhead/oh-my-zsh(|.git))
git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git" #git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git"
break ;; #break ;;
esac #esac
done #done
# Set git-config values known to fix git errors # Set git-config values known to fix git errors
# Line endings (#4069) # Line endings (#4069)