|Re: EGit with HTTP authentication [message #576057 is a reply to message #493949]
||Fri, 27 November 2009 16:33
Registered: November 2009
To help whomever is assigned this, I am running into the same problem serving up git via http using apache. |
Here is my /etc/apache2/conf.d/git.conf
Alias /git /var/git
Options ExecCGI FollowSymLinks Indexes
# Deny everyything here
Deny from all
AuthName "git repository"
Alias /PROJECT-X.git /var/git/PROJECT-X.git
Allow from all
Require group PROJECT-X-read
<Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require group PROJECT-X-write
Then when I try to Import...Git Repository a new Git installation from within eclipse, I get the initial error. "Cannot lis the available branches. Reason: [url]: cannoe read available refs. 401 Authorization Required". This is by using the url in the import: http://user:password@hostname:80/Project-X.git All of the fields on the Import Git Repository window form get filled in correctly. I can also do a git clone/push/? all from the command line to the repository.
Has a bug been filed for this? I can file one to get things rolling.
Powered by FUDForum
. Page generated in 0.12816 seconds