From fb7595d2549334f8444e3573e5491fb5bdf6d0fb Mon Sep 17 00:00:00 2001 From: William Boman Date: Thu, 19 Feb 2015 03:35:45 +0100 Subject: [PATCH] Escape message correctly on git_commit_all. --- lib/homesick/actions/git_actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/homesick/actions/git_actions.rb b/lib/homesick/actions/git_actions.rb index 3c1cfb2..803c67f 100644 --- a/lib/homesick/actions/git_actions.rb +++ b/lib/homesick/actions/git_actions.rb @@ -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