fix(cli): suppress 'checked out X' when X = nil

This commit is contained in:
Henrik Lissner 2024-03-29 12:32:12 -04:00
parent b533f5496c
commit 65240e9b92
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -319,7 +319,8 @@ list remains lean."
(print-group!
(if-let (pin (cdr (assoc package pinned)))
(print! (item "Pinned to %s") pin)
(print! (item "Checked out %s") commit)))
(when commit
(print! (item "Checked out %s") commit))))
;; HACK: Line encoding issues can plague
;; repos with dirty worktree prompts
;; when updating packages or "Local