Wrap git commit message in shell-quote-argument
This commit is contained in:
parent
344667ee75
commit
acf6a60578
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ Default to FILENAME."
|
||||||
(commit-msg (gac--commit-msg (buffer-file-name)))
|
(commit-msg (gac--commit-msg (buffer-file-name)))
|
||||||
(default-directory (file-name-directory (buffer-file-name))))
|
(default-directory (file-name-directory (buffer-file-name))))
|
||||||
(shell-command
|
(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 ()
|
(defun gac-push ()
|
||||||
"Push commits to the current upstream.
|
"Push commits to the current upstream.
|
||||||
|
|
Loading…
Reference in a new issue