Commit 0af4c537 authored by Eric Timmons's avatar Eric Timmons
Browse files

Always fetch branches when ensuring a ref is present locally

parent 1a3922fb
......@@ -220,7 +220,7 @@ ref is present locally, fetching or cloning the repo as necessary."
(let ((local-dir (git-repo-local-dir repo)))
(if (uiop:probe-file* local-dir)
;; Repo is present, need to fetch if the ref is not present.
(unless (ref-present-p repo :commit commit :tag tag :branch branch)
(when (or branch (not (ref-present-p repo :commit commit :tag tag)))
(with-retries (:max 5 :sleep 2)
(fetch-repo! repo))
;; Make sure the ref is actually present, raising an error otherwise.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment