diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2016-05-24 01:12:20 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2016-05-30 15:53:55 -0400 |
commit | 5b104a72759c25623c9d4e6206cddd4eafe603d3 (patch) | |
tree | 0058b2523486a7ca741dc8e4b962b3750e2a0b01 /org.eclipse.jgit.junit | |
parent | 6569a876a3ce8031d1ff89e8a80a4727f89036cf (diff) | |
download | jgit-5b104a72759c25623c9d4e6206cddd4eafe603d3.tar.gz jgit-5b104a72759c25623c9d4e6206cddd4eafe603d3.zip |
Better report on client side if push failed due to too large object
JGits PushCommand and BasePackPushConnection were throwing a generic
exception when the pushed pack-file was rejected by the server since it
contained too large objects. Teach JGit to better analyze the server's
response to detect this situation and throw a more specific exception.
Detect this situation by parsing the status line sent by the server.
This change only recognizes the response sent by a JGit based server.
All other servers which report such problems in a different way still
lead to a generic TransportExceptions.
Also see https://git.eclipse.org/r/#/c/46348/
Change-Id: I8d6d65e4585ebb3846f7207e7d1a2f82fa9cbd86
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
0 files changed, 0 insertions, 0 deletions