Skip to content

Commit

Permalink
Rolled back d84d40a
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe committed Sep 5, 2013
1 parent c7776b5 commit c88b051
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/main/scala/servlet/GitRepositoryServlet.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,22 @@ class GitRepositoryServlet extends GitServlet {

override def init(config: ServletConfig): Unit = {
setReceivePackFactory(new GitBucketReceivePackFactory())
config.getServletContext.setInitParameter("base-path", Directory.RepositoryHome)
config.getServletContext.setInitParameter("export-all", "true")

// TODO are there any other ways...?
super.init(new ServletConfig(){
def getInitParameter(name: String): String = name match {
case "base-path" => Directory.RepositoryHome
case "export-all" => "true"
case name => config.getInitParameter(name)
}
def getInitParameterNames(): java.util.Enumeration[String] = {
config.getInitParameterNames
}

def getServletContext(): ServletContext = config.getServletContext
def getServletName(): String = config.getServletName
});

super.init(config)
}

Expand Down

0 comments on commit c88b051

Please sign in to comment.