4

現在、プライベートサーバーで gitolite + gitlist に切り替えています。gitolite は正常に動作しますが、gitlist と gitweb は動作しません。gitlist で testrepo と自分自身を確認できますが、gitlist は教えてくれます

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

そして頭

cat HEAD
ref: refs/heads/master

何か案が?

4

2 に答える 2

0

タグとブランチを確認してください。

という名前のタグがある場合は、オプション付きの git リポジトリも機能します。(はブランチ名またはタグを取ります)mastergit clone-b master-b

于 2012-09-28T05:56:56.233 に答える
0

私もこの問題に苦しんでいました。

裸のリポジトリ「repoName.git」には、おそらく次 -rw-r--r-- 1 git git 23 Sep 19 11:37 HEAD のファイルがあります: 内容: ref: refs/heads/master. このファイルのアクセス権を確認するために、同様の投稿が提案されました。

しかし、ファイルを調べたところ、repoName.git/refs/heads/masterこれらの権利があり -rw------- 1 git git 41 Mar 13 15:22 refs/heads/masterました。

したがって、このファイルの権限も変更することで、この問題を解決できます (実際には、もう少し多くの権限を付与しました。権限を減らすこともできます)。

chmod go+r repositories

'repositories' は gitolite のリポジトリ ディレクトリです。

于 2013-03-15T19:15:40.963 に答える