]> source.dussan.org Git - jgit.git/commit
UploadPack: Report invalid want lines with ERR 51/2751/2
authorShawn O. Pearce <spearce@spearce.org>
Thu, 17 Mar 2011 04:50:42 +0000 (21:50 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 17 Mar 2011 17:53:19 +0000 (10:53 -0700)
commitc9a6980a422b485c23bfd99a939a378c5dd5114c
tree63a3a6166fc428f0bb021055c43617a0d9e5415f
parentb0a29c3fcfae9f23949db5cbee46db30448531cf
UploadPack: Report invalid want lines with ERR

Instead of aborting hard with a server-side exception, report an error
to the client with "ERR %s" in a context where the client is expecting
ACK/NAK.  Older clients will report this text to the user, but newer
ones know how to format this message in a more user-friendly way.

Change-Id: I1879b38988ba66f648c069c10dbfa14c3f34adb2
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java