Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
dc1518f021ac
Commit
dbb1cb30
authored
Aug 13, 2014
by
Dmitriy Zaporozhets
Browse files
Merge pull request #7441 from bbodenmiller/patch-7
add git config --global core.autocrlf check
parents
10dbff40a991
c4718706bdec
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/tasks/gitlab/check.rake
View file @
dc1518f0
...
...
@@ -318,7 +318,8 @@ namespace :gitlab do
options
=
{
"user.name"
=>
"GitLab"
,
"user.email"
=>
Gitlab
.
config
.
gitlab
.
email_from
"user.email"
=>
Gitlab
.
config
.
gitlab
.
email_from
,
"core.autocrlf"
=>
"input"
}
correct_options
=
options
.
map
do
|
name
,
value
|
run
(
%W(git config --global --get
#{
name
}
)
).
try
(
:squish
)
==
value
...
...
@@ -330,7 +331,8 @@ namespace :gitlab do
puts
"no"
.
red
try_fixing_it
(
sudo_gitlab
(
"git config --global user.name
\"
#{
options
[
"user.name"
]
}
\"
"
),
sudo_gitlab
(
"git config --global user.email
\"
#{
options
[
"user.email"
]
}
\"
"
)
sudo_gitlab
(
"git config --global user.email
\"
#{
options
[
"user.email"
]
}
\"
"
),
sudo_gitlab
(
"git config --global core.autocrlf
\"
#{
options
[
"core.autocrlf"
]
}
\"
"
)
)
for_more_information
(
see_installation_guide_section
"GitLab"
...
...
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