Unable to browse Public repo

Dejan Tolj dejan1 at gmail.com
Mon Jun 20 20:31:22 CEST 2011


Still no luck, I have completely disabled selinux.
What is the correct expression for  repo.path?
Is this the correct one: repo.path=/root/projects/proj/.git
It contains the HEAD and other git configs.

On Mon, Jun 20, 2011 at 11:50 AM, Ferry Huberts <mailings at hupie.com> wrote:
> On 06/20/2011 05:43 PM, Dejan Tolj wrote:
>> Hi
>> I have set all permissions to 777 in the project directory and in the
>> .git directory but still get the same error message.
>> I am using cgit v.0.9
>>
>> I have played around with the cgitrc file, for repo.path tried:
>> repo.path=/root/projects/proj/.git
>> repo.path=/root/projects/proj/proj.git
>>
>> repo.url=proj1
>> repo.path=/root/projects/proj/.git
>> repo.desc=the master foo repository
>> repo.owner=dtolj at example.com
>> repo.readme=info/web/about.html
>>
>
> you need to toggle the selinux boolean that lets apache access files
> under /home
>
>>
>> On Sat, Jun 18, 2011 at 3:10 AM, Lars Hjemli <hjemli at gmail.com> wrote:
>>> [Forgot to CC the list]
>>>
>>>
>>> ---------- Forwarded message ----------
>>> From: Lars Hjemli <hjemli at gmail.com>
>>> Date: Sat, Jun 18, 2011 at 09:09
>>> Subject: Re: Unable to browse Public repo
>>> To: Dejan Tolj <dejan1 at gmail.com>
>>>
>>>
>>> On Sat, Jun 18, 2011 at 00:12, Dejan Tolj <dejan1 at gmail.com> wrote:
>>>> After installing cgit, I went into the configuration and changed this:
>>>>
>>>> repo.url=test
>>>> repo.path=/home/dtolj/repositories/test
>>>> repo.desc=the master foo repository
>>>> repo.owner=dtolj at example.com
>>>> repo.readme=info/web/about.html
>>>>
>>>> I create a new public repo like so:
>>>> git init --bare /home/dtolj/repositories/test
>>>>
>>>> But I get an error message:
>>>> Not a git repository: '/home/dtolj/repositories/test'
>>>
>>> This is usually a permission problem: cgit needs to stat a few files
>>> in the repo and read the content of HEAD when "opening" the repo, and
>>> if this fails you'll get the quoted error message. Since cgit is
>>> executed by your webserver, you'll have to make sure that the
>>> webserver user account has read-access to the repositories.
>>>
>>> --
>>> larsh
>>>
>>> _______________________________________________
>>> cgit mailing list
>>> cgit at hjemli.net
>>> http://hjemli.net/mailman/listinfo/cgit
>>>
>>
>> _______________________________________________
>> cgit mailing list
>> cgit at hjemli.net
>> http://hjemli.net/mailman/listinfo/cgit
>
>
> --
> Ferry Huberts
>
> _______________________________________________
> cgit mailing list
> cgit at hjemli.net
> http://hjemli.net/mailman/listinfo/cgit
>




More information about the CGit mailing list