我目前已切換到我的私人服務器上的gitolite + gitlist。 雖然gitolite工作正常,但gitlist和gitweb都沒有。 雖然gitlist我可以看到testrepo和我自己,gitlist告訴我gitolite gitlist:無法將HEAD解析爲有效的參考
Oops! fatal: Failed to resolve HEAD as a valid ref.
的配置看起來有效...
[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
cat HEAD
ref: refs/heads/master
任何想法?
什麼確切的命令(git clone,我想)是失敗的?你使用了什麼確切的地址? – VonC
'HEAD'和'config'不應該(通常)是可執行的。不過,如果這會導致問題,我會很驚訝。 –
nope,git克隆,推拉工作正常,(如我所說)gitolite工作正常。但gitlist顯示存儲庫,但不顯示內容。出現錯誤消息「Oups!...」。 我已經將HEAD和Config的權利更改爲正常,沒有更改... – torsten