Commit 540a0f26 authored by Mark Janes's avatar Mark Janes

fetch: increase wait time when revision is not available

Now that fetching is 10X faster, we need to extend the amount of time
we wait for revisions to appear.
parent 97590d5b
......@@ -84,14 +84,14 @@ def main():
if args.branch:
branch = spec.branch_specification(args.branch)
branch.set_revisions(limit_to_repos)
for i in range(5):
for i in range(15):
repos.fetch(limit_to_repos)
try:
print("Checking out specified commit (try {}/5)".format(i+1))
print("Checking out specified commit (try {}/15)".format(i+1))
repos.checkout(limit_to_repos)
except git.GitCommandError:
print("Unable to checkout specified commit, retrying in 5s..")
time.sleep(5)
print("Unable to checkout specified commit, retrying in 15s..")
time.sleep(15)
else:
return
raise Exception("ERROR: Unable to checkout specified commit.")
......
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