Commit 5e2bce0f authored by Ben Bodenmiller's avatar Ben Bodenmiller

change git to git bin path

parent 1d04a6fd
...@@ -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