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!");