Detect git authentication failure (#5420)

Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
Jan
2023-12-24 01:23:39 +01:00
committed by GitHub
parent da8cabaf50
commit ecccea6781
3 changed files with 43 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ __all__ = [
"CopyingError",
"ExistingGitRepo",
"MissingGitRepo",
"AuthenticationError",
"CloningError",
"CurrentHashError",
"HardResetError",
@@ -79,6 +80,15 @@ class MissingGitRepo(DownloaderException):
pass
class AuthenticationError(GitException):
"""
Thrown when git failed to authenticate with
the server
"""
pass
class CloningError(GitException):
"""
Thrown when git clone returns a non zero exit code.