2014-02-18 30 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服務器被攔截它。

像其他帖子所說,子域網絡服務器設置是問題。