diff options
author | James Moger <james.moger@gitblit.com> | 2012-08-22 21:20:54 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-08-22 21:20:54 -0400 |
commit | 836188c101dd9f4fdd256dc8c7f4e66d8d2cba22 (patch) | |
tree | 6eeeb40f7333ec7c3d908e5c9d5696060c125368 /groovy/sendmail.groovy | |
parent | 5930f37817148229d9bcc0b47206b620e999315e (diff) | |
download | gitblit-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.groovy | 5 |
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 {
|