2012-05-31 20 views
1

我試圖將GIT回購站添加到我的redmine安裝中。Git回購站在Redmine中與Gitorious不起作用

我使用gitorious作爲我的REM管理。根據Redmine & Git integration我添加了符號鏈接到回購的腳本(http://blog.sofistes.net/2010/03/unhashing-gitorious-paths.html)。這一切工作正常。

但是,當我加入這樣的回購協議管理平臺,我得到一個錯誤:

404 - The entry or revision was not found in the repository.

和日誌文件(/var/www/redmine/default/production.log)我發現:

Processing RepositoriesController#show (for 192.168.1.100 at 2012-05-31 10:46:09) [GET] Parameters: {"action"=>"show", "id"=>"test-123", "controller"=>"repositories"} Rendering template within layouts/base Rendering common/error (404) Completed in 169ms (View: 42, DB: 8) | 404 Not Found [ http://redmine.test.com/projects/test-123/repository]

但是,當我創建一個git repo時,可以說,/var/www/test.com,並且我將其添加到(/var/www/test.com/.git/)到Redmine,它所有的單詞都很好....

這兩個回購都擁有git:git並具有相同的權限。

有沒有人有任何建議發生了什麼問題?

回答

0

Both repos are owned by git:git and have the same permissions.

庫具有相同的權限,但該路徑可能不是由管理平臺用戶訪問。您可以嘗試添加的git用戶WWW的數據組

sudo usermod -a -G www-data git 

或者設置權限,明確你的庫路徑:

sudo chmod 775 -R /projects