]> source.dussan.org Git - gitblit.git/commitdiff
Fixed commit url in sendemail.groovy
authorJames Moger <james.moger@gitblit.com>
Mon, 19 Dec 2011 14:11:52 +0000 (09:11 -0500)
committerJames Moger <james.moger@gitblit.com>
Mon, 19 Dec 2011 14:11:52 +0000 (09:11 -0500)
groovy/sendemail.groovy

index f90d7ff5811a900aa9cb76f122237145bce6e674..6792d94d5aadc5007e9e4b15ede3b5b52a8d5502 100644 (file)
@@ -99,14 +99,15 @@ switch(repository.name) {
 }\r
 \r
 // define the summary and commit urls\r
+def repo =  + repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/'))\r
 def summaryUrl\r
 def commitUrl\r
-if (gitblit.getBoolean(Keys.web.mountParameters, true)) {\r
-       summaryUrl = url + '/summary/' + repository.name.replace('/', gitblit.getString(Keys.web.forwardSlashCharacter, '/'))\r
-       commitUrl = url + '/commit/'\r
+if (gitblit.getBoolean(Keys.web.mountParameters, true)) {      \r
+       summaryUrl = url + "/summary/$repo"\r
+       commitUrl = url + "/commit/$repo/"\r
 } else {\r
-       summaryUrl = url + '/summary?r=' + repository.name\r
-       commitUrl = url + '/commit?h='\r
+       summaryUrl = url + "/summary?r=$repo"\r
+       commitUrl = url + "/commit?r=$repo&h="\r
 }\r
 \r
 // construct a simple text summary of the changes contained in the push\r