当我尝试使用"Https“协议克隆我的Gitlab项目时,我遇到了一个问题。使用git协议,一切工作正常。
错误:
Cloning into 'test'...
fatal: https://XXXX.XXXX.XXXX.XXXX/user.name/test.git/info/refs?service=git-upload-pack
not found: did you run git update-server-info on the server?我尝试了许多解决方案,但错误仍然存在。
有人能帮帮我吗?
谢谢你的帮助,祝你有愉快的一天!
发布于 2014-01-28 07:29:48
我的问题是Apache配置文件。我的示例配置
<VirtualHost ip:80>
ServerName git.domain.tld
Redirect permanent / https://git.domain.tld/
</VirtualHost>
<VirtualHost ip:443>
ServerName git.domain.tld
DocumentRoot /home/git/gitlab/public
<Location />
ProxyPassReverse http://127.0.0.1:8080
ProxyPassReverse http://git.domain.tld
</Location>
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .* http://127.0.0.1:8080%{REQUEST_URI} [P,QSA]
RequestHeader set X_FORWARDED_PROTO 'https'
</VirtualHost>来源:https://github.com/gitlabhq/gitlab-recipes/tree/master/web-server/apache
发布于 2013-02-12 19:28:17
此错误的常见来源是URL中的某种错误。确保你的选择是正确的。你能通过HTTP克隆吗?您的服务器是否设置为通过HTTP和HTTPS为存储库提供服务?
如果你的git客户端(读取git --version的输出),它将不能使用智能超文本传输协议后端。
GitLab issue #1924中的一条评论建议排除服务器端的权限问题。
发布于 2013-04-19 17:43:36
当您在.../gitlab/config/gitlab.yml配置文件中更改了gitlab应用程序的relative_url_root变量的默认配置时,可能会发生此错误。默认值为/。当您将默认值更改为/gitlab时,url将为
http://your.domain/gitlab这在UI中正确显示为项目的克隆url,例如
http://your.domain/gitlab/group/project.git但不知何故,在通过http或https进行实际克隆时,此配置未被检查。
在github上的gitlab问题列表中已经有一个关于它的discussion and a bugfix。这是the rawfile。
我的配置是gitlab v5.0和gitlab-shell v1.1.0。
https://stackoverflow.com/questions/14830652
复制相似问题