Skip to content

Commit

Permalink
Merge remote-tracking branch 'owengriffin/windows-support'
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuslash committed Apr 3, 2015
2 parents e7b3a14 + acf6a60 commit 858dc81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions git-auto-commit-mode.el
Expand Up @@ -104,10 +104,11 @@ Default to FILENAME."

(defun gac-commit ()
"Commit the current buffer's file to git."
(let* ((filename (buffer-file-name))
(commit-msg (gac--commit-msg filename)))
(let* ((filename (file-name-nondirectory (buffer-file-name)))
(commit-msg (gac--commit-msg (buffer-file-name)))
(default-directory (file-name-directory (buffer-file-name))))
(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 ()
"Push commits to the current upstream.
Expand Down

0 comments on commit 858dc81

Please sign in to comment.