Reported-by: Robert <robert_no.spam_m@xxxxxxxx> Signed-off-by: Marek Zawirski <marek.zawirski@xxxxxxxxx> --- See http://code.google.com/p/egit/issues/detail?id=16 .../spearce/jgit/transport/BasePackConnection.java | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java b/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java index 14fffc3..de0c7b6 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java +++ b/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java @@ -129,8 +129,15 @@ private void readAdvertisedRefsImpl() throws IOException { try { line = pckIn.readString(); } catch (EOFException eof) { - if (avail.isEmpty()) - throw new NoRemoteRepositoryException(uri, "not found."); + if (avail.isEmpty()) { + String service = "unknown"; + if (this instanceof PushConnection) + service = "push"; + else if (this instanceof FetchConnection) + service = "fetch"; + throw new NoRemoteRepositoryException(uri, service + + " service not found."); + } throw eof; } -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html