Merge pull request #24520 from aaronlehmann/no-retry-on-unknown-repository

Don't retry push on an unknown repository
This commit is contained in:
Phil Estes 2016-07-12 11:17:29 -04:00 committed by GitHub
commit 10d5d08c48

View file

@ -89,7 +89,7 @@ func retryOnError(err error) error {
}
case errcode.Error:
switch v.Code {
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests:
case errcode.ErrorCodeUnauthorized, errcode.ErrorCodeUnsupported, errcode.ErrorCodeDenied, errcode.ErrorCodeTooManyRequests, v2.ErrorCodeNameUnknown:
return xfer.DoNotRetry{Err: err}
}
case *url.Error: