diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2020-06-26 14:23:29 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2020-06-29 08:57:42 +0900 |
commit | 8774f541904ca9afba1786b4da14c1aedf4dda78 (patch) | |
tree | da91ec0694d03ac6ed230c64c879bc3cd7b8f8ba /org.eclipse.jgit.test | |
parent | e342d6a2d837aeba20982afe6990ead824278dcd (diff) | |
download | jgit-8774f541904ca9afba1786b4da14c1aedf4dda78.tar.gz jgit-8774f541904ca9afba1786b4da14c1aedf4dda78.zip |
Improve error message when receive.maxCommandBytes is exceeded
The message "Too many commands" implies there is a hard limit on the
number of commands, which isn't the case. The limit is on the total
size of the received data, as explained in change I84317d396 which
introduced the configuration setting receive.maxCommandBytes:
shorter reference names allow for more commands, longer reference
names permit fewer commands per batch.
Change the message to:
Commands size exceeds limit defined in receive.maxCommandBytes
Change-Id: I678b78f919b2fec8f8058f3403f2541c26a5d00e
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java index 0179d8c26f..21fde3e76e 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java @@ -162,7 +162,9 @@ public class PushConnectionTest { fail("server did not abort"); } catch (TransportException e) { String msg = e.getMessage(); - assertEquals("remote: Too many commands", msg); + assertEquals( + "remote: Commands size exceeds limit defined in receive.maxCommandBytes", + msg); } } } |