我在Apache的树莓派上有一个git repo.
我使用git smart http:从Linux客户端,使用终端,一切正常.
例如,我可以使用以下命令克隆存储库:
git clone http://address:8080/git/repo_name
插入用户名和密码后,它可以工作.
但是,如果我想使用Eclipse克隆存储库,则会显示此错误:
这是apache的错误日志:
[Wed Sep 28 12:33:13.321726 2016] [negotiation:error] [pid 28020] [client 131.114.176.222:37524] AH00690: no acceptable variant: /usr/share/httpd/error/HTTP_UNAUTHORIZED.html.var
这是我的Apache配置(关于git和smart http):
Options ExecCGI Indexes
Order allow,deny
Allow from all
Require all granted
Options +ExecCGI
AuthType Basic
AuthName "Git Login"
AuthUserFile /srv/git/.git-auth-file
Require valid-user
Options +ExecCGI
AuthType Basic
AuthName "Git Login"
AuthUserFile /srv/git/.git-auth-file
Require valid-user
SetEnv GIT_PROJECT_ROOT /srv/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
有任何想法吗?
PS:我正在使用
>用于Web开发人员的Eclipse Java EE IDE.版本:霓虹灯发行(4.6.0)内部版本:20160613-1800
> EGit 4.4.0.20160607