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
# Update upstream remote to ohmyzsh org
git remote -v | while read remote url extra; do
case "$url" in
https://github.com/snakewarhead/oh-my-zsh(|.git))
git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git"
break ;;
git@github.com:snakewarhead/oh-my-zsh(|.git))
git remote set-url upstream "git@github.com:ohmyzsh/ohmyzsh.git"
break ;;
# Update out-of-date "unauthenticated git protocol on port 9418" to https
git://github.com/snakewarhead/oh-my-zsh(|.git))
git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git"
break ;;
esac
done
#git remote -v | while read remote url extra; do
#case "$url" in
#https://github.com/snakewarhead/oh-my-zsh(|.git))
#git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git"
#break ;;
#git@github.com:snakewarhead/oh-my-zsh(|.git))
#git remote set-url upstream "git@github.com:ohmyzsh/ohmyzsh.git"
#break ;;
## Update out-of-date "unauthenticated git protocol on port 9418" to https
#git://github.com/snakewarhead/oh-my-zsh(|.git))
#git remote set-url upstream "https://github.com/ohmyzsh/ohmyzsh.git"
#break ;;
#esac
#done
# Set git-config values known to fix git errors
# Line endings (#4069)