Skip to content

Commit

Permalink
cli/packages: fix update output on unpinned packages
Browse files Browse the repository at this point in the history
- don't print output of git command
- count commits and output log
  • Loading branch information
iyefrat committed Jun 4, 2021
1 parent 46c89d3 commit f9a1d80
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 @@ -402,9 +402,10 @@ declaration) or dependency thereof that hasn't already been."
(print! (start "\033[K(%d/%d) Fetching %s...%s") i total package esc)
(doom--straight-with (straight-vc-fetch-from-remote recipe)
(when .it
(setq output .output)
(straight-merge-package package)
(setq target-ref (straight-vc-get-commit type local-repo))
(setq output (doom--commit-log-between ref target-ref)
commits (length (split-string output "\n" t)))
(or (not (doom--same-commit-p target-ref ref))
(cl-return)))))

Expand Down

0 comments on commit f9a1d80

Please sign in to comment.