GitHttpGuiAuthenticator: fix a misprint: place login after scheme

This commit is contained in:
Kirill Likhodedov
2015-08-18 18:02:21 +03:00
parent a503f841e4
commit 580f4683b4
@@ -267,7 +267,7 @@ class GitHttpGuiAuthenticator implements GitHttpAuthenticator {
}
Couple<String> pair = UriUtil.splitScheme(url);
String scheme = pair.getFirst();
if (StringUtil.isEmpty(scheme)) {
if (!StringUtil.isEmpty(scheme)) {
return scheme + URLUtil.SCHEME_SEPARATOR + login + "@" + pair.getSecond();
}
return login + "@" + url;