summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-12-19 09:11:52 -0500
committerJames Moger <james.moger@gitblit.com>2011-12-19 09:11:52 -0500
commit916e848bd77cc0a63f083ff48e5a2e4e788e1f51 (patch)
treeb24783fce64aae72ef269cc7cbe782eb2fda4920
parent198fa1ef2317f9c532cc9f40c8d54010195e8cbe (diff)
downloadgitblit-916e848bd77cc0a63f083ff48e5a2e4e788e1f51.tar.gz
gitblit-916e848bd77cc0a63f083ff48e5a2e4e788e1f51.zip
Fixed commit url in sendemail.groovy
-rw-r--r--groovy/sendemail.groovy11
1 files changed, 6 insertions, 5 deletions
diff --git a/groovy/sendemail.groovy b/groovy/sendemail.groovy
index f90d7ff5..6792d94d 100644
--- a/groovy/sendemail.groovy
+++ b/groovy/sendemail.groovy
@@ -99,14 +99,15 @@ switch(repository.name) {
}
// define the summary and commit urls
+def repo = + repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/'))
def summaryUrl
def commitUrl
-if (gitblit.getBoolean(Keys.web.mountParameters, true)) {
- summaryUrl = url + '/summary/' + repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/'))
- commitUrl = url + '/commit/'
+if (gitblit.getBoolean(Keys.web.mountParameters, true)) {
+ summaryUrl = url + "/summary/$repo"
+ commitUrl = url + "/commit/$repo/"
} else {
- summaryUrl = url + '/summary?r=' + repository.name
- commitUrl = url + '/commit?h='
+ summaryUrl = url + "/summary?r=$repo"
+ commitUrl = url + "/commit?r=$repo&h="
}
// construct a simple text summary of the changes contained in the push