Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
clpm
clpm
Commits
0af4c537
Commit
0af4c537
authored
Aug 13, 2019
by
Eric Timmons
Browse files
Always fetch branches when ensuring a ref is present locally
parent
1a3922fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/clpm/repos/git.lisp
View file @
0af4c537
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment