Describe the bug It seems the branch starting on line 99 is never executed because whenever hasText(username) is true, the branch starting on line 93 is executed.

https://github.com/spring-cloud/spring-cloud-config/blob/e7a69671b3a9242e2412e030e8660af4a194f56c/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/GitCredentialsProviderFactory.java#L93-L106