summaryrefslogtreecommitdiffstats
path: root/groovy
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-12-04 11:20:22 -0500
committerJames Moger <james.moger@gitblit.com>2012-12-04 11:20:22 -0500
commitfddab0300aaec0741f8b2de86952c675f82948dd (patch)
tree8deb9d6585564ac7ff466425c54d9da78b934cbd /groovy
parent7670a00feb789cd4bd16d87144f6f94adb1f43db (diff)
downloadgitblit-fddab0300aaec0741f8b2de86952c675f82948dd.tar.gz
gitblit-fddab0300aaec0741f8b2de86952c675f82948dd.zip
Fixed regression in sendmail-html.groovy
Diffstat (limited to 'groovy')
-rw-r--r--groovy/sendmail-html.groovy7
1 files changed, 3 insertions, 4 deletions
diff --git a/groovy/sendmail-html.groovy b/groovy/sendmail-html.groovy
index 06f1e3ed..16920735 100644
--- a/groovy/sendmail-html.groovy
+++ b/groovy/sendmail-html.groovy
@@ -370,16 +370,15 @@ class HtmlMailWriter {
formatter.setDiffComparator(RawTextComparator.DEFAULT);
def diffs
- RevWalk rw = new RevWalk(repository);
+ RevWalk rw = new RevWalk(repository)
if (commit.parentCount > 0) {
- RevWalk rw = new RevWalk(repository);
- RevCommit parent = rw.parseCommit(commit.parents[0].id);
- rw.dispose();
+ RevCommit parent = rw.parseCommit(commit.parents[0].id)
diffs = formatter.scan(parent.tree, commit.tree)
} else {
diffs = formatter.scan(new EmptyTreeIterator(),
new CanonicalTreeParser(null, rw.objectReader, commit.tree))
}
+ rw.dispose()
// Write status table
builder.table('class':"plain") {
tbody() {