Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
e3f7b8aa
Unverified
Commit
e3f7b8aa
authored
Nov 10, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(updater): avoid `git -C` for compatibility with git < v1.8.5 (#10404)
Fixes #10404
parent
db19589f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
check_for_upgrade.sh
tools/check_for_upgrade.sh
+4
-4
No files found.
tools/check_for_upgrade.sh
View file @
e3f7b8aa
...
...
@@ -34,11 +34,11 @@ function current_epoch() {
function
is_update_available
()
{
local
branch
branch
=
${
"
$(
git
-C
"
$ZSH
"
config
--local
oh-my-zsh.branch
)
"
:-
master
}
branch
=
${
"
$(
cd
"
$ZSH
"
;
git
config
--local
oh-my-zsh.branch
)
"
:-
master
}
local
remote remote_url remote_repo
remote
=
${
"
$(
git
-C
"
$ZSH
"
config
--local
oh-my-zsh.remote
)
"
:-
origin
}
remote_url
=
$(
git
-C
"
$ZSH
"
config remote.
$remote
.url
)
remote
=
${
"
$(
cd
"
$ZSH
"
;
git
config
--local
oh-my-zsh.remote
)
"
:-
origin
}
remote_url
=
$(
cd
"
$ZSH
"
;
git
config remote.
$remote
.url
)
local
repo
case
"
$remote_url
"
in
...
...
@@ -56,7 +56,7 @@ function is_update_available() {
# Get local HEAD. If this fails assume there are updates
local
local_head
local_head
=
$(
git
-C
"
$ZSH
"
rev-parse
$branch
2>/dev/null
)
||
return
0
local_head
=
$(
cd
"
$ZSH
"
;
git
rev-parse
$branch
2>/dev/null
)
||
return
0
# Get remote HEAD. If no suitable command is found assume there are updates
# On any other error, skip the update (connection may be down)
...
...
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