Commit e088777e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #7470 from bbodenmiller/patch-1

change git to git bin path
parents cd8503e3 5e2bce0f
...@@ -322,7 +322,7 @@ namespace :gitlab do ...@@ -322,7 +322,7 @@ namespace :gitlab do
"core.autocrlf" => "input" "core.autocrlf" => "input"
} }
correct_options = options.map do |name, value| correct_options = options.map do |name, value|
run(%W(git config --global --get #{name})).try(:squish) == value run(%W(#{Gitlab.config.git.bin_path} config --global --get #{name})).try(:squish) == value
end end
if correct_options.all? if correct_options.all?
...@@ -330,9 +330,9 @@ namespace :gitlab do ...@@ -330,9 +330,9 @@ namespace :gitlab do
else else
puts "no".red puts "no".red
try_fixing_it( try_fixing_it(
sudo_gitlab("git config --global user.name \"#{options["user.name"]}\""), sudo_gitlab("\"#{Gitlab.config.git.bin_path}\" config --global user.name \"#{options["user.name"]}\""),
sudo_gitlab("git config --global user.email \"#{options["user.email"]}\""), sudo_gitlab("\"#{Gitlab.config.git.bin_path}\" config --global user.email \"#{options["user.email"]}\""),
sudo_gitlab("git config --global core.autocrlf \"#{options["core.autocrlf"]}\"") sudo_gitlab("\"#{Gitlab.config.git.bin_path}\" config --global core.autocrlf \"#{options["core.autocrlf"]}\"")
) )
for_more_information( for_more_information(
see_installation_guide_section "GitLab" see_installation_guide_section "GitLab"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment