branch: elpa/git-commit commit a20dc0b83e458c4f2d5e5c7f4038f27af3794014 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
Use string-trim --- lisp/magit-log.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/magit-log.el b/lisp/magit-log.el index 0ef03dcb23..b9e304be7f 100644 --- a/lisp/magit-log.el +++ b/lisp/magit-log.el @@ -834,7 +834,7 @@ https://github.com/mhagger/git-when-merged." (if (zerop exit) (magit-log-setup-buffer (list (format "%s^1..%s" m m)) args files nil commit) - (setq m (string-trim-left (substring m (string-match " " m)))) + (setq m (string-trim m)) (if (equal m "Commit is directly on this branch.") (let* ((from (concat commit "~10")) (to (- (car (magit-rev-diff-count branch commit)) 10))