Commit 71bbf83e authored by Noam Postavsky's avatar Noam Postavsky

git-commit-file-not-found: Handle git-rebase-filename-regexp too

parent e7e7966b
......@@ -421,7 +421,9 @@ This is only used if Magit is available."
;; cygwin git will pass a cygwin path (/cygdrive/c/foo/.git/...),
;; try to handle this in window-nt Emacs.
(and (string-match-p git-commit-filename-regexp buffer-file-name)
(and (or (string-match-p git-commit-filename-regexp buffer-file-name)
(if (boundp 'git-rebase-filename-regexp)
(string-match-p git-rebase-filename-regexp buffer-file-name)))
(not (file-accessible-directory-p
(file-name-directory buffer-file-name)))
(if (require 'magit-git nil t)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment