diff options
| -rw-r--r-- | lisp/magit.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/magit.el b/lisp/magit.el index 0c94613..8ddf49c 100644 --- a/lisp/magit.el +++ b/lisp/magit.el @@ -471,7 +471,7 @@ remote in alphabetic order." (cl-defun magit-insert-head-header (&optional (branch (magit-get-current-branch))) "Insert a header line about the `HEAD' commit." - (let ((output (magit-rev-format "%h %s" "HEAD"))) + (let ((output (magit-rev-format "%h %s" (or branch "HEAD")))) (string-match "^\\([^ ]+\\) \\(.*\\)" output) (magit-bind-match-strings (hash msg) output (magit-insert-section it (branch (or branch hash)) |
