From acf6a60578a5ac60f712d37b9055a676015c5a15 Mon Sep 17 00:00:00 2001 From: Owen Griffin Date: Thu, 2 Apr 2015 22:52:31 +0100 Subject: [PATCH] Wrap git commit message in shell-quote-argument --- git-auto-commit-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-auto-commit-mode.el b/git-auto-commit-mode.el index 4675e29..6b41e69 100644 --- a/git-auto-commit-mode.el +++ b/git-auto-commit-mode.el @@ -108,7 +108,7 @@ Default to FILENAME." (commit-msg (gac--commit-msg (buffer-file-name))) (default-directory (file-name-directory (buffer-file-name)))) (shell-command - (concat "git add " (shell-quote-argument (convert-standard-filename filename)) " && git commit -m \"" commit-msg "\"")))) + (concat "git add " (shell-quote-argument (convert-standard-filename filename)) " && git commit -m " (shell-quote-argument commit-msg))))) (defun gac-push () "Push commits to the current upstream.