Fix overaggressive recloning when updating packages

This commit is contained in:
Henrik Lissner 2020-03-01 13:23:39 -05:00
parent bc025adc19
commit 3ecff5777b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -186,9 +186,12 @@ declaration) or dependency thereof that hasn't already been."
(print! (info "\033[K(%d/%d) %s is up-to-date...%s") i total package esc) (print! (info "\033[K(%d/%d) %s is up-to-date...%s") i total package esc)
(cl-return)) (cl-return))
((straight-vc-commit-present-p recipe target-ref) ((if (straight-vc-commit-present-p recipe target-ref)
(print! (start "\033[K(%d/%d) Checking out %s (%s)...%s") (print! (start "\033[K(%d/%d) Checking out %s (%s)...%s")
i total package (doom--abbrev-commit target-ref) esc) i total package (doom--abbrev-commit target-ref) esc)
(print! (start "\033[K(%d/%d) Fetching %s...%s") i total package esc)
(and (straight-vc-fetch-from-remote recipe)
(straight-vc-commit-present-p recipe target-ref)))
(straight-vc-check-out-commit recipe target-ref) (straight-vc-check-out-commit recipe target-ref)
(or (not (eq type 'git)) (or (not (eq type 'git))
(setq output (doom--commit-log-between ref target-ref))) (setq output (doom--commit-log-between ref target-ref)))