(attempt int)
| 11 | const retryMaxAttempts = 3 |
| 12 | |
| 13 | func retrySleep(attempt int) { |
| 14 | time.Sleep(time.Duration(attempt) * time.Second) |
| 15 | } |
| 16 | |
| 17 | // CheckIfRemoteBranch check if repoRef is a branch. |
| 18 | func CheckIfRemoteBranch(target, repoUrl, repoRef string) (bool, error) { |