From: James Moger Date: Mon, 19 Dec 2011 14:15:08 +0000 (-0500) Subject: More sendemail.groovy fixes X-Git-Tag: v0.8.0~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a50c4afdde37845b94b3545029ed9aac5796fdf7;p=gitblit.git More sendemail.groovy fixes --- diff --git a/groovy/sendemail.groovy b/groovy/sendemail.groovy index 6792d94d..69e2b93d 100644 --- a/groovy/sendemail.groovy +++ b/groovy/sendemail.groovy @@ -77,7 +77,7 @@ def emailprefix = config.getString('hooks', null, 'emailprefix') // set default values def toAddresses = [] if (emailprefix == null) -emailprefix = '"[Gitblit]' +emailprefix = '[Gitblit]' if (mailinglist != null) { def addrs = mailinglist.split('(,|\\s)') @@ -99,7 +99,7 @@ switch(repository.name) { } // define the summary and commit urls -def repo = + repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/')) +def repo = repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/')) def summaryUrl def commitUrl if (gitblit.getBoolean(Keys.web.mountParameters, true)) {