Quote filename for git add
Fixes git-auto-commit-mode for files with spaces in the filename.
This commit is contained in:
parent
7e4ed5f07a
commit
e11eb392c0
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ Default to FILENAME."
|
|||
(let* ((filename (buffer-file-name))
|
||||
(commit-msg (gac--commit-msg filename)))
|
||||
(shell-command
|
||||
(concat "git add " filename " && git commit -m '" commit-msg "'"))))
|
||||
(concat "git add '" filename "' && git commit -m '" commit-msg "'"))))
|
||||
|
||||
(defun gac-push ()
|
||||
"Push commits to the current upstream.
|
||||
|
|
Loading…
Reference in a new issue