Use right variable in error message about depth
When this exception is thrown, the `depth` member variable isn't set yet, resulting in a confusing error message: "Invalid depth: 0". Change-Id: I8a2bd5e1d9bec00acb0b8857bbf6821e95bf1369 Signed-off-by: Ivan Frade <ifrade@google.com>
This commit is contained in:
parent
aa095af791
commit
74d41be0d1
|
@ -1015,7 +1015,7 @@ private void fetchV2() throws IOException {
|
|||
if (parsedDepth <= 0) {
|
||||
throw new PackProtocolException(
|
||||
MessageFormat.format(JGitText.get().invalidDepth,
|
||||
Integer.valueOf(depth)));
|
||||
Integer.valueOf(parsedDepth)));
|
||||
}
|
||||
if (reqBuilder.getShallowSince() != 0) {
|
||||
throw new PackProtocolException(
|
||||
|
|
Loading…
Reference in New Issue