branch: elpa/magit
commit 4c524377f302819c1fc14ac8bb82e3ebd616c12c
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-revision--wash-message: Ignore values of wrapped hook functions
---
 lisp/magit-diff.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el
index 7162ba275c2..63adff5be9b 100644
--- a/lisp/magit-diff.el
+++ b/lisp/magit-diff.el
@@ -2753,7 +2753,7 @@ or a ref which is not a branch, then it inserts nothing."
                              (match-end 0)
                              'font-lock-face 'magit-keyword))))
     (run-hook-wrapped 'magit-wash-message-hook
-                      (lambda (fn) (save-excursion (funcall fn))))
+                      (lambda (fn) (prog1 nil (save-excursion (funcall fn)))))
     (buffer-string)))
 
 (defun magit-revision--wash-message-hashes ()

Reply via email to