Escape message correctly on git_commit_all.

This commit is contained in:
William Boman
2015-02-19 03:35:45 +01:00
parent c8f0999035
commit fb7595d254

View File

@@ -88,7 +88,7 @@ module Homesick
def git_commit_all(config = {})
say_status 'git commit all', '', :green
if config[:message]
system "git commit -a -m '#{config[:message]}'"
system %Q(git commit -a -m "#{config[:message]}")
else
system 'git commit -v -a'
end