2014-02-18 29 views
0

我正在与Gitorious(Ubuntu 12.04上的Ruby + rails)合作。Gitorious - 我如何恢复存储库索引?

因为我最近无法通过WEB登录,所以我使用一些rake命令清除了一些缓存。 我很抱歉,我不记得哪个命令。

之后,我无法从我的本地存储库推送到远程存储库。 似乎每个存储库都不起作用。

的错误是这样的:

[email protected]:~/test# git clone [email protected]:foo/foo_web.git 
Cloning into 'foo_web'... 

== Gitorious: ========================================================== 

Access denied or wrong repository path 

======================================================================== 

Web的应用程序的gitorious工作仓库的罚款,并在gitserver,源代码仍然存在。

我认为存储库索引发生了一些情况。

有人可以给我一个提示如何调试或修复它?

更新:使用公共密钥

SSH访问工作

[email protected]:~# ssh [email protected] 
PTY allocation request failed on channel 0 
Welcome, userfoo. Use git to push/pull your repositories 
Connection to gitserver closed. 
[email protected]:~#  

服务器端git的克隆,从文件系统适用

[email protected]:~/test# git clone file://localhost//repositories/foo/bar_src.git 
Cloning into 'bar_src'... 

回答

0

问题是在Apache Web服务器设置。

因为我正在运行一些web应用程序,所以我配置如下。

/config/gitorious.yml

... 
gitorious_host: git.mydomain.com 
... 

Apache虚拟主机

[email protected]:~ cat /etc/apache2/sites-enabled/gitorious 
<VirtualHost *:80> 
    ServerName mydomain.com 
    ServerAlias git.mydomain.com 

    DocumentRoot /var/www/gitorious/public 

    Redirect permanent/https://git.mydomain.com/ 
    #Redirect permanent/https://git.mydomain.com/ # if I comment this line, works fine 
</VirtualHost> 

这似乎是,当客户端访问混帐服务器使用Git命令,Apache Web服务器被拦截它。

像其他帖子所说,子域网络服务器设置是问题。