Merge pull request #52 from Mic92/fixes

git: fix retry message
This commit is contained in:
Jörg Thalheim 2023-12-04 10:23:30 +01:00 committed by GitHub
commit 29f998bbfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,7 +345,8 @@ class GitWithRetry(steps.Git):
retry_counter += 1
if retry_counter == 3:
raise e
self.step_status.setText(f"Retrying git clone (error: {e})")
log: Log = yield self.addLog("log")
yield log.addStderr(f"Retrying git clone (error: {e})\n")
yield asyncSleep(2 << retry_counter) # 2, 4, 8