branch: elpa/git-commit
commit ba9caffb132868dca1784904b9c6c8f93bfe0d41
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-save-repository-buffers: Assert file is writable
---
lisp/magit-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 3cd7bb2..9a4585c 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -1227,7 +1227,7 @@ argument (the prefix) non-nil means save all with no
questions."
;; For remote files this makes network requests and
;; therefore has to come after the above to avoid
;; unnecessarily waiting for unrelated hosts.
- (file-exists-p (file-name-directory buffer-file-name))
+ (file-writable-p buffer-file-name)
(equal (magit-rev-parse-safe "--show-toplevel") topdir)))))))
;;; Restore Window Configuration