2012-09-25 3 views
4

현재 개인 서버에서 gitolite + gitlist로 전환했습니다. gitolite는 잘 작동하지만 gitlist와 gitweb은 잘 동작하지 않습니다. gitlist에 내가 testrepo 내 자신을 볼 수 있지만 , gitlist 나에게gitlist : HEAD를 유효한 심판으로 해결하지 못했습니다

Oops! fatal: Failed to resolve HEAD as a valid ref. 
는 config가 유효 보이는

...

[git] 
client = '/usr/bin/git' ; Your git executable path 
repositories = '/var/www/gitolite/repositories/' ; Path to your repositories 

; You can hide repositories from GitList, just copy this for each repository you want to hide 
; hidden[] = '/var/www/projects/BetaTest' 
hidden[] = /var/www/gitolite/repositories/gitolite-admin.git 

[app] 
debug = false 

; If you need to specify custom filetypes for certain extensions, do this here 
[filetypes] 
; extension = type 
; dist = xml 

... 또한 저장소를 알려줍니다

drwxr-xr-x 7 git git 4096 Sep 23 11:53 . 
drwxr-xr-x 5 git git 4096 Sep 23 00:19 .. 
-rwxr-xr-x 1 git git 23 Sep 23 00:19 HEAD 
drwxr-xr-x 2 git git 4096 Sep 23 00:19 branches 
-rwxr-xr-x 1 git git 66 Sep 23 00:19 config 
-rwxr-xr-x 1 git git 386 Sep 24 17:27 gl-conf 
drwxr-xr-x 2 git git 4096 Sep 23 00:19 hooks 
drwxr-xr-x 2 git git 4096 Sep 23 00:19 info 
drwxr-xr-x 109 git git 4096 Sep 25 00:24 objects 
drwxr-xr-x 4 git git 4096 Sep 23 00:19 refs 

및 HEAD

어떤 아이디어?

+0

정확한 명령 (git clone, 내가 생각하기에)이 실패하고 있습니까? 정확한 주소는 무엇입니까? – VonC

+0

'HEAD'와'config'는 (보통) 실행 가능해서는 안됩니다. 비록 이것이 문제가된다면 나는 놀랄 것이다. –

+0

싫어, 자식 클론, 밀고 당겨 올바르게 작동, (내가 말한대로) gitolite 잘 작동합니다. 그러나 gitlist는 저장소가 아니라 내용을 보여줍니다. 오류 메시지 "Oups! ..."가 표시됩니다. HEAD 및 Config에 대한 권한을 변경하지 않고 정상적으로 변경했습니다. – torsten

답변

0

태그와 분기를 확인하십시오.

master라는 이름의 태그도 작업 할 수 -b master 옵션을 사용하여 자식의 repo의 git clone이있는 경우! (-b는 지사 이름 또는 태그를 취합니다.

0

이 문제가 발생했습니다. -rw-r--r-- 1 git git 23 Sep 19 11:37 HEAD 내용에 : ref: refs/heads/master 베어 저장소 "repoName.git"에서

아마이 파일이 있습니다. 유사한 게시물이이 파일의 액세스 권한을 확인하도록 제안되었습니다.

그러나 파일 repoName.git/refs/heads/master을 검사했을 때 이러한 권한을 가지고 있습니다. -rw------- 1 git git 41 Mar 13 15:22 refs/heads/master.

따라서 나도이 파일의 권한을 변경하여이 문제를 해결할 수있다 (사실 나는 좀 더 부여, 당신은 더 적은 권한을 부여하기 위해 시도 할 수 있습니다) :

chmod go+r repositories

경우 '저장소' gitolite의 저장소 디렉토리입니다.

관련 문제