Try to push to the fork only when working on the work-tree

This should avoid pushing to the fork on the π or on android
Jacopo De Simoi 1 year ago
parent 000a001dfc
commit ea12c96140
  1. 4
      tools/upgrade.sh

@ -253,7 +253,9 @@ if LANG= git pull --quiet --rebase $remote $branch; then
git config oh-my-zsh.lastVersion "$last_commit"
# Push to fork
git push --force origin $branch
if [[ $remote == upstream ]]; then
git push --force origin $branch
fi
# Print changelog to the terminal
if [[ $interactive == true && $verbose_mode == default ]]; then

Loading…
Cancel
Save