diff --git a/tools/upgrade.sh b/tools/upgrade.sh
index 0dc84e2146efee24a3326d58f2f2ac1777a9fa66..9ecaed2ef80bfd3b5709b143da999dd899ade1ad 100644
--- a/tools/upgrade.sh
+++ b/tools/upgrade.sh
@@ -38,7 +38,7 @@ if [ -n "$remote" ]; then
 fi
 
 printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
-if git pull --rebase --autostash --stat origin master
+if git -c rebase.autoStash=true pull --rebase --stat origin master
 then
   printf '%s' "$GREEN"
   printf '%s\n' '         __                                     __   '