Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Jgit Servlet(Allowing Clone in Webapp)
Jgit Servlet [message #1385341] Thu, 05 June 2014 17:53
Christopher Thomas is currently offline Christopher ThomasFriend
Messages: 1
Registered: June 2014
Junior Member
Ok i have a sub directory in my webapp called git where I store all my repositories. The structure looks like this: webapps | test | git Now what i want to do is clone these repositories I am using jgit gitservlet my web.xml looks like this:

    <servlet>
 <servlet-name>GitServlet</servlet-name>
 <servlet-class>org.eclipse.jgit.http.server.GitServlet</servlet-class>
 <init-param>
   <param-name>base-path</param-name>
   <param-value>/var/lib/tomcat6/webapps/test/git</param-value>
 </init-param>
  <init-param>
   <param-name>export-all</param-name>
   <param-value>0</param-value>
 </init-param>



</servlet>
<servlet-mapping>
 <servlet-name>GitServlet</servlet-name>
 <url-pattern>/git/*</url-pattern>
</servlet-mapping>

When i try to do a git clone from a remote computer i get: remote error Git access forbidden
Previous Topic:[API] getting IFileRevision from ResourceEditableRevision
Next Topic:Team-&gt;Share Project-&gt;Git sometimes doesn't create .gitignore in project root
Goto Forum:
  


Current Time: Thu Apr 25 00:04:56 GMT 2024

Powered by FUDForum. Page generated in 0.02613 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top