|
|
|
|
Re: EGit with HTTP authentication [message #576057 is a reply to message #493949] |
Fri, 27 November 2009 11:33  |
Eclipse User |
|
|
|
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
<Directory "/var/git/">
Options ExecCGI FollowSymLinks Indexes
# Deny everyything here
DAV On
Deny from all
AuthType Basic
AuthName "git repository"
AuthUserFile /var/git/htpasswd.git
AuthGroupFile /var/git/htgroup.git
</Directory>
Alias /PROJECT-X.git /var/git/PROJECT-X.git
<Directory "/var/git/PROJECT-X.git/">
Allow from all
Order allow,deny
<Limit GET>
Require group PROJECT-X-read
</Limit>
<Limit GET PUT POST DELETE PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require group PROJECT-X-write
</Limit>
</Directory>
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.
Thanks!
|
|
|
|
Powered by
FUDForum. Page generated in 0.34042 seconds