]> source.dussan.org Git - gitblit.git/commitdiff
Expose ReceivePack to Groovy hooks (issue 125)
authorJames Moger <james.moger@gitblit.com>
Fri, 14 Sep 2012 13:36:46 +0000 (09:36 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 14 Sep 2012 13:36:46 +0000 (09:36 -0400)
docs/04_releases.mkd
groovy/blockpush.groovy
groovy/jenkins.groovy
groovy/localclone.groovy
groovy/protect-refs.groovy
groovy/sendmail.groovy
src/com/gitblit/GitServlet.java

index fd112d5636f3cb4a96d9f059e7dcf5933536881c..0ef571ce88b3534ff77e8013deb0c603681427e8 100644 (file)
@@ -19,6 +19,7 @@ If you are updating from an earlier release AND you have indexed branches with t
 \r
 #### changes\r
 \r
+- Expose ReceivePack to Groovy push hooks (issue 125)\r
 - Redirect to summary page when refreshing the empty repository page on a repository that is not empty (issue 129)\r
 - 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)\r
 - LDAP admin attribute setting is now consistent with LDAP teams setting and admin teams list.  \r
index d0e2c2e0fa7558c0d110ad506679a812771ba377..caef33060db4dadee07d040db47fcb80a05264cb 100644 (file)
@@ -53,6 +53,7 @@ import com.gitblit.utils.ClientLogger
  * Bound Variables:\r
  *  gitblit                    Gitblit Server                          com.gitblit.GitBlit\r
  *  repository         Gitblit Repository                      com.gitblit.models.RepositoryModel\r
+ *  receivePack                JGit Receive Pack                       org.eclipse.jgit.transport.ReceivePack\r
  *  user                       Gitblit User                            com.gitblit.models.UserModel\r
  *  commands           JGit commands                           Collection<org.eclipse.jgit.transport.ReceiveCommand>\r
  *     url                             Base url for Gitblit            String\r
index 73360581398e133bd97a72e18c42400aaf5f9dfc..d76a3d66877496b0238907d6d067467cea2bdb28 100644 (file)
@@ -48,6 +48,7 @@ import org.slf4j.Logger
  * Bound Variables:\r
  *  gitblit                    Gitblit Server                          com.gitblit.GitBlit\r
  *  repository         Gitblit Repository                      com.gitblit.models.RepositoryModel\r
+ *  receivePack                JGit Receive Pack                       org.eclipse.jgit.transport.ReceivePack\r
  *  user                       Gitblit User                            com.gitblit.models.UserModel\r
  *  commands           JGit commands                           Collection<org.eclipse.jgit.transport.ReceiveCommand>\r
  *     url                             Base url for Gitblit            String\r
index 11868d71767d05747f07e99f283d78ef58dc69b8..49b7f8b39d82a41f73594e6f24307d16abbb0019 100644 (file)
@@ -58,6 +58,7 @@ import org.slf4j.Logger
  * Bound Variables:\r
  *  gitblit                    Gitblit Server                          com.gitblit.GitBlit\r
  *  repository         Gitblit Repository                      com.gitblit.models.RepositoryModel\r
+ *  receivePack                JGit Receive Pack                       org.eclipse.jgit.transport.ReceivePack\r
  *  user                       Gitblit User                            com.gitblit.models.UserModel\r
  *  commands           JGit commands                           Collection<org.eclipse.jgit.transport.ReceiveCommand>\r
  *     url                             Base url for Gitblit            String\r
index f730bcb23482c74934a33fa9bf7d74c08a47ede3..b1b611f442679f28e62587f3d3d49beeb2b1df34 100644 (file)
@@ -59,6 +59,7 @@ import org.slf4j.Logger
  * Bound Variables:\r
  *  gitblit                    Gitblit Server                          com.gitblit.GitBlit\r
  *  repository         Gitblit Repository                      com.gitblit.models.RepositoryModel\r
+ *  receivePack                JGit Receive Pack                       org.eclipse.jgit.transport.ReceivePack\r
  *  user                       Gitblit User                            com.gitblit.models.UserModel\r
  *  commands           JGit commands                           Collection<org.eclipse.jgit.transport.ReceiveCommand>\r
  *     url                             Base url for Gitblit            String\r
index f3fe0fab49fe231ef56f929fd1bf3c13158b4db3..c832bc64b4b35fc2fa583dcc7487694d60a31bc4 100644 (file)
@@ -54,6 +54,7 @@ import org.slf4j.Logger
  * Bound Variables:\r
  *  gitblit                    Gitblit Server                          com.gitblit.GitBlit\r
  *  repository         Gitblit Repository                      com.gitblit.models.RepositoryModel\r
+ *  receivePack                JGit Receive Pack                       org.eclipse.jgit.transport.ReceivePack\r
  *  user                       Gitblit User                            com.gitblit.models.UserModel\r
  *  commands           JGit commands                           Collection<org.eclipse.jgit.transport.ReceiveCommand>\r
  *     url                             Base url for Gitblit            String\r
index d81703d02ea748ef31dbb4400fe9a7bd38a6edb3..2571693d14922b6973cd0e15dd636d977511f3b4 100644 (file)
@@ -249,6 +249,7 @@ public class GitServlet extends org.eclipse.jgit.http.server.GitServlet {
                        Binding binding = new Binding();\r
                        binding.setVariable("gitblit", GitBlit.self());\r
                        binding.setVariable("repository", repository);\r
+                       binding.setVariable("receivePack", rp);\r
                        binding.setVariable("user", user);\r
                        binding.setVariable("commands", commands);\r
                        binding.setVariable("url", gitblitUrl);\r