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
59c40eee
Unverified
Commit
59c40eee
authored
Jan 27, 2022
by
Marc Cornellà
Committed by
GitHub
Jan 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(installer): avoid `git clone -c` to support git v1.7.1 (#10621)
parent
3741d1aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
install.sh
tools/install.sh
+13
-7
No files found.
tools/install.sh
View file @
59c40eee
...
@@ -263,13 +263,19 @@ setup_ohmyzsh() {
...
@@ -263,13 +263,19 @@ setup_ohmyzsh() {
exit
1
exit
1
fi
fi
git clone
-c
core.eol
=
lf
-c
core.autocrlf
=
false
\
# Manual clone with git config options to support git < v1.7.2
-c
fsck.zeroPaddedFilemode
=
ignore
\
git init
"
$ZSH
"
&&
cd
"
$ZSH
"
\
-c
fetch.fsck.zeroPaddedFilemode
=
ignore
\
&&
git config core.eol lf
\
-c
receive.fsck.zeroPaddedFilemode
=
ignore
\
&&
git config core.autocrlf
false
\
-c
oh-my-zsh.remote
=
origin
\
&&
git config fsck.zeroPaddedFilemode ignore
\
-c
oh-my-zsh.branch
=
"
$BRANCH
"
\
&&
git config fetch.fsck.zeroPaddedFilemode ignore
\
--depth
=
1
--branch
"
$BRANCH
"
"
$REMOTE
"
"
$ZSH
"
||
{
&&
git config receive.fsck.zeroPaddedFilemode ignore
\
&&
git config oh-my-zsh.remote origin
\
&&
git config oh-my-zsh.branch
"
$BRANCH
"
\
&&
git remote add origin
"
$REMOTE
"
\
&&
git fetch
--depth
=
1 origin
\
&&
git checkout
-b
"
$BRANCH
"
"origin/
$BRANCH
"
||
{
rm
-rf
"
$ZSH
"
fmt_error
"git clone of oh-my-zsh repo failed"
fmt_error
"git clone of oh-my-zsh repo failed"
exit
1
exit
1
}
}
...
...
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