summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorTobias Pfeifer2013-02-01 10:05:31 (EST)
committer Tobias Pfeifer2013-02-01 10:05:31 (EST)
commit2c40482d0f8da91ed9d5468a04a02c0c636b674c (patch)
tree7d03a1b2a7705bf58fa23ec385f1a111af4cb078
parentdcddaa943e68b1e6521e7fa44151babd21e12a7a (diff)
downloadjgit-2c40482d0f8da91ed9d5468a04a02c0c636b674c.zip
jgit-2c40482d0f8da91ed9d5468a04a02c0c636b674c.tar.gz
jgit-2c40482d0f8da91ed9d5468a04a02c0c636b674c.tar.bz2
Fixed problems occuring when changing user in gerrit configurationrefs/changes/04/10104/1
Bug: 399238 Change-Id: I255634bc9b3681f292190051daed22a4771d6e57 Signed-off-by: Tobias Pfeifer <to.pfeifer@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java
index cdd7fcd..9befb92 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/URIish.java
@@ -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) {