]> source.dussan.org Git - jgit.git/commitdiff
Fixed problems occuring when changing user in gerrit configuration 04/10104/1
authorTobias Pfeifer <to.pfeifer@sap.com>
Fri, 1 Feb 2013 15:05:31 +0000 (16:05 +0100)
committerTobias Pfeifer <to.pfeifer@sap.com>
Fri, 1 Feb 2013 15:05:31 +0000 (16:05 +0100)
Bug: 399238
Change-Id: I255634bc9b3681f292190051daed22a4771d6e57
Signed-off-by: Tobias Pfeifer <to.pfeifer@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java

index cdd7fcde831ae99d4d0cc3271729ee4ebf9f73db..9befb9275587bb31d79a48316834033816e18963 100644 (file)
@@ -614,7 +614,7 @@ public class URIish implements Serializable {
                }
 
                if (getHost() != null) {
-                       if (getUser() != null)
+                       if (getUser() != null && getUser().length() > 0)
                                r.append('@');
                        r.append(escape(getHost(), false, escapeNonAscii));
                        if (getScheme() != null && getPort() > 0) {