Unverified Commit bccfe138 authored by Mauricio Wolff's avatar Mauricio Wolff Committed by GitHub
Browse files

updater: add --autostash to git pull (#7172)

If I have custom configs (like theme customizations) I have to stash my changes and get them back after the update. 

By adding the --autostash on upgrade.sh, if I have any changes not commited they'll be reapplied after the upgrade, allowing me to have temporary customizations without any harm to the upgrade process.
parent 6cb8ff39
...@@ -38,7 +38,7 @@ if [ -n "$remote" ]; then ...@@ -38,7 +38,7 @@ if [ -n "$remote" ]; then
fi fi
printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh" printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
if git pull --rebase --stat origin master if git pull --rebase --autostash --stat origin master
then then
printf '%s' "$GREEN" printf '%s' "$GREEN"
printf '%s\n' ' __ __ ' printf '%s\n' ' __ __ '
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment