From 05bf3d5b6768aa85548ab6f9adc233fc9f19b049 Mon Sep 17 00:00:00 2001 From: Rafael Cavazin <rafaelcavazin@gmail.com> Date: Sun, 27 Jan 2013 11:14:08 -0500 Subject: [PATCH] reintegrating translation branch --- distrib/groovy/sendmail-html.groovy | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/groovy/sendmail-html.groovy b/distrib/groovy/sendmail-html.groovy similarity index 98% rename from groovy/sendmail-html.groovy rename to distrib/groovy/sendmail-html.groovy index e0cdecd..1692073 100644 --- a/groovy/sendmail-html.groovy +++ b/distrib/groovy/sendmail-html.groovy @@ -370,14 +370,15 @@ formatter.setDiffComparator(RawTextComparator.DEFAULT); def diffs - RevWalk rw = new RevWalk(repository); + RevWalk rw = new RevWalk(repository) if (commit.parentCount > 0) { - RevCommit parent = commit.parents[0] + 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() { -- Gitblit v1.9.1