added git clone retry

This commit is contained in:
2023-05-21 21:19:24 +02:00
parent 55aa18f218
commit c59a6ed2be
2 changed files with 19 additions and 7 deletions

View File

@@ -50,6 +50,7 @@ var (
reReplaceSpecialChars = regexp.MustCompile(`(?m)[^a-zA-Z0-9_\-.]`)
reReplaceUnderscore = regexp.MustCompile(`(?m)[_\-]{2,}`)
reReplaceTree = regexp.MustCompile(`(?m)^tree$`)
reGitHTTPError = regexp.MustCompile(`(?mi)The requested URL returned error: (\d+)`)
)
type Conf struct {