]> source.dussan.org Git - jgit.git/commit
Improve error message when receive.maxCommandBytes is exceeded 98/165498/3
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 26 Jun 2020 05:23:29 +0000 (14:23 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Sun, 28 Jun 2020 23:57:42 +0000 (08:57 +0900)
commit8774f541904ca9afba1786b4da14c1aedf4dda78
treeda91ec0694d03ac6ed230c64c879bc3cd7b8f8ba
parente342d6a2d837aeba20982afe6990ead824278dcd
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>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties