2015-12-10 32 views
0

我想設置一個android源碼的本地副本到本地gerrit在本地gerrit上設置AOSP源碼

我安裝格里特和使用git clone --mirror克隆機器人下 /家庭/ gerrit2/review_site/git的/有repo sync,重啓格里特我可以看到所有的資料庫中格里特項目,但是當我點擊我無法訪問這些該項目獲得:

代碼審查 - 錯誤您請求的頁面不存在,或者您 沒有權限瀏覽這個頁面

然後I F ound我能夠瀏覽兩個儲存:git-repokernel

我看着我的/home/gerrit2/review_site/git/據我所知,一切是在嵌套目錄不能訪問:

.repo 
device 
git-repo.git 
kernel.git 
platform 
vendor 

因此,只有kernel.gitgit-repo.git可以在gerrit中正常訪問。

回答

0

好吧,我找到了解決方案。 什麼我沒有提到的是,我使用HTTP代理與格里特,我發現在Apache httpd配置修復,不得不添加「nocanon」選項進入以下行:

的ProxyPass /格里特/ http://MY_GERRIT_IP:8081/gerrit/ nocanon