diff options
author | Luca Milanesio <luca.milanesio@gmail.com> | 2015-06-12 17:59:37 +0100 |
---|---|---|
committer | Luca Milanesio <luca.milanesio@gmail.com> | 2015-06-12 17:59:47 +0100 |
commit | a1cee65c7242f69f7e35978d98cea391095d7225 (patch) | |
tree | fdb672d7e77c09c1299003c0543a84ce63f610d1 /src/main/java/com/gitblit/git/PatchsetReceivePack.java | |
parent | f3b7e29b210bba61c64ba9aee07cf2eef20ea5f4 (diff) | |
download | gitblit-a1cee65c7242f69f7e35978d98cea391095d7225.tar.gz gitblit-a1cee65c7242f69f7e35978d98cea391095d7225.zip |
Bump to JGit 4.0.0
JGit 4.0.0 fixes a memory leak but introduces a non-compatible change
for closing the RevWalk: before it was release() but now is close()
Diffstat (limited to 'src/main/java/com/gitblit/git/PatchsetReceivePack.java')
-rw-r--r-- | src/main/java/com/gitblit/git/PatchsetReceivePack.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/git/PatchsetReceivePack.java b/src/main/java/com/gitblit/git/PatchsetReceivePack.java index 54ffb7ba..ef0b409b 100644 --- a/src/main/java/com/gitblit/git/PatchsetReceivePack.java +++ b/src/main/java/com/gitblit/git/PatchsetReceivePack.java @@ -667,7 +667,7 @@ public class PatchsetReceivePack extends GitblitReceivePack { // identified the missing object earlier before we got control.
LOGGER.error("failed to get commit count", e);
} finally {
- walk.release();
+ walk.close();
}
sendError("");
@@ -1078,7 +1078,7 @@ public class PatchsetReceivePack extends GitblitReceivePack { LOGGER.error("failed to get commit count", e);
return 0;
} finally {
- walk.release();
+ walk.close();
}
return count;
}
|