From 836188c101dd9f4fdd256dc8c7f4e66d8d2cba22 Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 22 Aug 2012 21:20:54 -0400 Subject: [PATCH] Fixed generated urls in sendmail hook script for grouped repositories --- docs/04_releases.mkd | 1 + groovy/sendmail.groovy | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/04_releases.mkd b/docs/04_releases.mkd index af70dff5..43cce71b 100644 --- a/docs/04_releases.mkd +++ b/docs/04_releases.mkd @@ -11,6 +11,7 @@ If you are updating from an earlier release AND you have indexed branches with t #### fixes +- Fixed generated urls in Groovy *sendmail* hook script for grouped repositories - Eliminated an unnecessary reopsitory enumeration call on the root page which should result in faster page loads (issue 103) - Gitblit could not delete a Lucene index in a working copy on index upgrade - Do not index submodule links (issue 119) diff --git a/groovy/sendmail.groovy b/groovy/sendmail.groovy index 8d223ef5..f3fe0fab 100644 --- a/groovy/sendmail.groovy +++ b/groovy/sendmail.groovy @@ -106,10 +106,11 @@ for (team in teams) { toAddresses.addAll(repository.mailingLists) // define the summary and commit urls -def repo = repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/')) +def repo = repository.name def summaryUrl def commitUrl -if (gitblit.getBoolean(Keys.web.mountParameters, true)) { +if (gitblit.getBoolean(Keys.web.mountParameters, true)) { + repo = repo.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/')).replace('/', '%2F') summaryUrl = url + "/summary/$repo" commitUrl = url + "/commit/$repo/" } else { -- 2.39.5