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
72c42398
Commit
72c42398
authored
Aug 14, 2019
by
Eric Timmons
Browse files
Increase retry sleep and max for git repos
parent
898aeebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/clpm/repos/git.lisp
View file @
72c42398
...
...
@@ -221,13 +221,13 @@ ref is present locally, fetching or cloning the repo as necessary."
(
if
(
uiop:probe-file*
local-dir
)
;; Repo is present, need to fetch if the ref is not present.
(
when
(
or
branch
(
not
(
ref-present-p
repo
:commit
commit
:tag
tag
)))
(
with-retries
(
:max
5
:sleep
2
)
(
with-retries
(
:max
10
:sleep
5
)
(
fetch-repo!
repo
))
;; Make sure the ref is actually present, raising an error otherwise.
(
unless
(
ref-present-p
repo
:commit
commit
:tag
tag
:branch
branch
)
(
error
"ref is not present, even after updating."
)))
;; Repo is not present at all, need to clone it.
(
with-retries
(
:max
5
:sleep
2
)
(
with-retries
(
:max
10
:sleep
5
)
(
clone-repo!
repo
)
;; Make sure the ref is actually present, raising an error otherwise.
(
unless
(
ref-present-p
repo
:commit
commit
:tag
tag
:branch
branch
)
...
...
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