add git config --global core.autocrlf check
core.autocrlf was added to install guide in 2d681c0d1e
but not added to check script
This commit is contained in:
parent
d4f5af820f
commit
ecd33c9d92
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue