summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2019-11-13 10:16:25 -0800
committerDavid Pursehouse <david.pursehouse@gmail.com>2019-11-13 14:56:45 -0800
commitfd798d326ebfc72f5a465584b74a2526738d1e15 (patch)
treef5991b77c954fc2155a49554b4f2fdd27d710c39 /org.eclipse.jgit.test
parent566a46e9ec6abed9521ed74fc14a5734cfd033af (diff)
downloadjgit-fd798d326ebfc72f5a465584b74a2526738d1e15.tar.gz
jgit-fd798d326ebfc72f5a465584b74a2526738d1e15.zip
BaseReceivePack: Add hasReceivedPack method
The getPackSize method will throw IllegalStateException if it is called when the pack size is not set. This is the case for example when the received commands are all DELETE and there is no pack. Add a new method hasReceivedPack that can be called prior to calling getPackSize, to avoid causing the IllegalStateException. See [1] for context. [1] https://bugs.chromium.org/p/gerrit/issues/detail?id=11918 Change-Id: I56397256a05e92c8398e65c07a859cee59b46317 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
0 files changed, 0 insertions, 0 deletions