Fix overaggressive recloning when updating packages
This commit is contained in:
parent
bc025adc19
commit
3ecff5777b
1 changed files with 6 additions and 3 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue