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

    magit-insert-{upstream,push}-branch-header: Remove stray code
    
    Calling `magit-log-format-message-function' twice does not make sense.
---
 lisp/magit-status.el | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/lisp/magit-status.el b/lisp/magit-status.el
index 71e94ca6108..626a899c7e0 100644
--- a/lisp/magit-status.el
+++ b/lisp/magit-status.el
@@ -623,9 +623,8 @@ arguments are for internal use only."
                                     " "))
                        upstream " "
                        (funcall magit-log-format-message-function upstream
-                                (funcall magit-log-format-message-function nil
-                                         (or (magit-rev-format "%s" upstream)
-                                             "(no commit message)"))))
+                                (or (magit-rev-format "%s" upstream)
+                                    "(no commit message)")))
              (cond
               ((magit--unnamed-upstream-p remote merge)
                (concat (propertize merge  'font-lock-face 'magit-branch-remote)
@@ -662,9 +661,8 @@ arguments are for internal use only."
                                 " "))
                    target " "
                    (funcall magit-log-format-message-function target
-                            (funcall magit-log-format-message-function nil
-                                     (or (magit-rev-format "%s" target)
-                                         "(no commit message)"))))
+                            (or (magit-rev-format "%s" target)
+                                "(no commit message)")))
          (let ((remote (magit-get-push-remote branch)))
            (if (magit-remote-p remote)
                (concat target " "

Reply via email to