Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
18ee5dff
Unverified
Commit
18ee5dff
authored
Feb 27, 2020
by
Marc Cornellà
Committed by
GitHub
Feb 27, 2020
Browse files
Merge branch 'master' into clipboard
parents
d81cd753
368198b7
Changes
261
Show whitespace changes
Inline
Side-by-side
tools/upgrade.sh
View file @
18ee5dff
...
...
@@ -20,9 +20,25 @@ else
NORMAL
=
""
fi
printf
"
${
BLUE
}
%s
${
NORMAL
}
\n
"
"Updating Oh My Zsh"
cd
"
$ZSH
"
if
git pull
--rebase
--stat
origin master
# Set git-config values known to fix git errors
# Line endings (#4069)
git config core.eol lf
git config core.autocrlf
false
# zeroPaddedFilemode fsck errors (#4963)
git config fsck.zeroPaddedFilemode ignore
git config fetch.fsck.zeroPaddedFilemode ignore
git config receive.fsck.zeroPaddedFilemode ignore
# Update upstream remote to ohmyzsh org
remote
=
$(
git remote
-v
|
awk
'/https:\/\/github\.com\/robbyrussell\/oh-my-zsh\.git/{ print $1; exit }'
)
if
[
-n
"
$remote
"
]
;
then
git remote set-url
"
$remote
"
"https://github.com/ohmyzsh/ohmyzsh.git"
fi
printf
"
${
BLUE
}
%s
${
NORMAL
}
\n
"
"Updating Oh My Zsh"
if
git pull
--rebase
--autostash
--stat
origin master
then
printf
'%s'
"
$GREEN
"
printf
'%s\n'
' __ __ '
...
...
Prev
1
…
10
11
12
13
14
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment