Skip to content
Snippets Groups Projects
Commit ef5dddf4 authored by Felix Schäfer's avatar Felix Schäfer
Browse files

Switch to GitAdapter for quoting #891

Fixes problems with paths containing quotes (sic)
parent 2c762405
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@ module ChiliProject
git_dir = Rails.root.join('.git')
if File.directory? git_dir
git.send(:shellout, "#{git.sq_bin} --git-dir=\"#{git_dir}\" rev-parse --short=9 HEAD") { |io| io.read }.to_s.chomp
git.send(:shellout, "#{git.sq_bin} --git-dir=#{git.shell_quote git_dir.to_s} rev-parse --short=9 HEAD") { |io| io.read }.to_s.chomp
end
end
end
......
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