Switch to GitAdapter for quoting #891
Fixes problems with paths containing quotes (sic)
This commit is contained in:
parent
2c76240544
commit
ef5dddf4db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue