Skip to content

Commit

Permalink
Automatically fetch the repo when the thawed-to commit is missing
Browse files Browse the repository at this point in the history
This should address radian-software#58: If we're unable to find the commit locally,
the easiest way to get it is probably to fetch it.
  • Loading branch information
antifuchs committed May 1, 2019
1 parent c0d81f8 commit b424272
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions straight.el
Original file line number Diff line number Diff line change
Expand Up @@ -5050,6 +5050,8 @@ according to the value of `straight-profiles'."
;; We can't use `alist-get' here because that uses
;; `eq', and our hash-table keys are strings.
(when-let ((commit (cdr (assoc local-repo versions-alist))))
(unless (straight-vc-commit-present-p recipe commit)
(straight-vc-fetch-from-upstream recipe))
(straight-vc-check-out-commit
type local-repo commit)))))))))

Expand Down

0 comments on commit b424272

Please sign in to comment.