From 6ad3a0b2eefcf643d123af3ad33836b7cffab71e Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 24 Apr 2020 19:30:16 -0400 Subject: [PATCH] Fix which JobException is thrown for git credentials errors --- .../Components/Repository/LibGit2RepositoryFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Repository/LibGit2RepositoryFactory.cs b/src/Tgstation.Server.Host/Components/Repository/LibGit2RepositoryFactory.cs index 06eb1926c9..3d4663dde3 100644 --- a/src/Tgstation.Server.Host/Components/Repository/LibGit2RepositoryFactory.cs +++ b/src/Tgstation.Server.Host/Components/Repository/LibGit2RepositoryFactory.cs @@ -92,7 +92,7 @@ namespace Tgstation.Server.Host.Components.Repository if (supportsAnonymous) return new DefaultCredentials(); - if (!hasCreds) + if (supportsUserPass) throw new JobException("Remote does not support anonymous authentication!"); throw new JobException("Server does not support anonymous or username/password authentication!");