branch: elpa/magit
commit 34d249b7b61131191ea0ac411d8f9b94afcfe6d2
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-abbrev-length: Use correct conditional
---
 lisp/magit-git.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 44b135b2610..885685884b7 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -2273,8 +2273,8 @@ If `first-parent' is set, traverse only first parents."
       ;; abbreviation.  Actually HEAD's abbreviation might be an
       ;; outlier, so use the shorter of the abbreviations for two
       ;; commits.  See #3034.
-      (if-let ((head (magit-rev-parse "--short" "HEAD"))
-               (head-len (length head)))
+      (if-let* ((head (magit-rev-parse "--short" "HEAD"))
+                (head-len (length head)))
           (min head-len
                (if-let ((rev (magit-rev-parse "--short" "HEAD~")))
                    (length rev)

Reply via email to