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

This commit is contained in:
Henrik Lissner 2024-03-29 12:32:12 -04:00 committed by Yann Esposito (Yogsototh)
parent 75e82d83bf
commit 1f6dd7e480
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

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