retry regardless of error, add retry limit
This commit is contained in:
2
utils.go
2
utils.go
@@ -50,7 +50,6 @@ 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 {
|
||||
@@ -84,6 +83,7 @@ type Conf struct {
|
||||
Skipped, Queued, Latest, Failed, Signing, Building, Unknown string
|
||||
}
|
||||
}
|
||||
MaxCloneRetries uint64 `yaml:"max_clone_retries"`
|
||||
}
|
||||
|
||||
type Globs []string
|
||||
|
Reference in New Issue
Block a user