Skip to content

Commit

Permalink
cli/packages: fix commit between pins counting
Browse files Browse the repository at this point in the history
the commit counting introduced in a3df5bf prints `nil` instead of the
empty string when the repo moves from commit A to commit B where A isn't
reachable from B
  • Loading branch information
iyefrat committed Jun 4, 2021
1 parent f408016 commit 46c89d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/cli/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ declaration) or dependency thereof that hasn't already been."
(doom--abbrev-commit ref)
(doom--abbrev-commit target-ref)
(if (and (integerp commits) (> commits 0))
(format " [%d commit(s)]" commits)))
(format " [%d commit(s)]" commits)
""))
(unless (string-empty-p output)
(let ((lines (split-string output "\n")))
(setq output
Expand Down

0 comments on commit 46c89d3

Please sign in to comment.