summaryrefslogtreecommitdiffstats
path: root/groovy/sendmail.groovy
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-08-22 21:20:54 -0400
committerJames Moger <james.moger@gitblit.com>2012-08-22 21:20:54 -0400
commit836188c101dd9f4fdd256dc8c7f4e66d8d2cba22 (patch)
tree6eeeb40f7333ec7c3d908e5c9d5696060c125368 /groovy/sendmail.groovy
parent5930f37817148229d9bcc0b47206b620e999315e (diff)
downloadgitblit-836188c101dd9f4fdd256dc8c7f4e66d8d2cba22.tar.gz
gitblit-836188c101dd9f4fdd256dc8c7f4e66d8d2cba22.zip
Fixed generated urls in sendmail hook script for grouped repositories
Diffstat (limited to 'groovy/sendmail.groovy')
-rw-r--r--groovy/sendmail.groovy5
1 files changed, 3 insertions, 2 deletions
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 {