Merge remote-tracking branch 'owengriffin/windows-support'

This commit is contained in:
Tom Willemse 2015-04-03 09:41:43 +02:00
commit 858dc816f1

View file

@ -104,10 +104,11 @@ Default to FILENAME."
(defun gac-commit () (defun gac-commit ()
"Commit the current buffer's file to git." "Commit the current buffer's file to git."
(let* ((filename (buffer-file-name)) (let* ((filename (file-name-nondirectory (buffer-file-name)))
(commit-msg (gac--commit-msg filename))) (commit-msg (gac--commit-msg (buffer-file-name)))
(default-directory (file-name-directory (buffer-file-name))))
(shell-command (shell-command
(concat "git add '" 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.