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:
Ivan Frade 2018-08-30 12:44:51 -07:00
parent aa095af791
commit 74d41be0d1
1 changed files with 1 additions and 1 deletions

View File

@ -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(