From e8c417f4e63f84ac6e14f6d5540dcb1f0f9862fc Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 23 Nov 2012 10:46:35 -0500 Subject: [PATCH] Command-line tool to generate client certificate bundles for existing users --- groovy/sendmail.groovy | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/groovy/sendmail.groovy b/groovy/sendmail.groovy index 8d223ef..c832bc6 100644 --- a/groovy/sendmail.groovy +++ b/groovy/sendmail.groovy @@ -54,6 +54,7 @@ * Bound Variables: * gitblit Gitblit Server com.gitblit.GitBlit * repository Gitblit Repository com.gitblit.models.RepositoryModel + * receivePack JGit Receive Pack org.eclipse.jgit.transport.ReceivePack * user Gitblit User com.gitblit.models.UserModel * commands JGit commands Collection<org.eclipse.jgit.transport.ReceiveCommand> * url Base url for Gitblit String @@ -106,10 +107,11 @@ 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 { -- Gitblit v1.9.1