Switch to GitAdapter for quoting #891

Fixes problems with paths containing quotes (sic)
This commit is contained in:
Felix Schäfer 2012-03-05 18:21:28 +01:00
parent 2c76240544
commit ef5dddf4db
1 changed files with 1 additions and 1 deletions

View File

@ -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