James Moger
2012-09-14 6bb3b233c8a73d4fe4e5024794029fdc75a9f1bb
Expose ReceivePack to Groovy hooks (issue-125)
7 files modified
7 ■■■■■ changed files
docs/04_releases.mkd 1 ●●●● patch | view | raw | blame | history
groovy/blockpush.groovy 1 ●●●● patch | view | raw | blame | history
groovy/jenkins.groovy 1 ●●●● patch | view | raw | blame | history
groovy/localclone.groovy 1 ●●●● patch | view | raw | blame | history
groovy/protect-refs.groovy 1 ●●●● patch | view | raw | blame | history
groovy/sendmail.groovy 1 ●●●● patch | view | raw | blame | history
src/com/gitblit/GitServlet.java 1 ●●●● patch | view | raw | blame | history
docs/04_releases.mkd
@@ -19,6 +19,7 @@
#### changes
- Expose ReceivePack to Groovy push hooks (issue 125)
- Redirect to summary page when refreshing the empty repository page on a repository that is not empty (issue 129)
- Emit a warning in the log file if running on a Tomcat-based servlet container which is unfriendly to %2F forward-slash url encoding AND Gitblit is configured to mount parameters with %2F forward-slash url encoding (Github/jpyeron, issue 126)
- LDAP admin attribute setting is now consistent with LDAP teams setting and admin teams list.  
groovy/blockpush.groovy
@@ -53,6 +53,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
groovy/jenkins.groovy
@@ -48,6 +48,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
groovy/localclone.groovy
@@ -58,6 +58,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
groovy/protect-refs.groovy
@@ -59,6 +59,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
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
src/com/gitblit/GitServlet.java
@@ -249,6 +249,7 @@
            Binding binding = new Binding();
            binding.setVariable("gitblit", GitBlit.self());
            binding.setVariable("repository", repository);
            binding.setVariable("receivePack", rp);
            binding.setVariable("user", user);
            binding.setVariable("commands", commands);
            binding.setVariable("url", gitblitUrl);