On Thursday, August 3, 2017 at 2:58:01 AM UTC-7, Mingxing Tian wrote:
>
>
>
> 在 2017年8月3日星期四 UTC+8下午3:34:00,RjOllos写道:
>>
>>
>>
>> On Wednesday, August 2, 2017 at 7:13:36 PM UTC-7, Mingxing Tian wrote:
>>>
>>>
>>>
>>> 在 2017年8月3日星期四 UTC+8上午12:15:10,RjOllos写道:
>>>>
>>>>
>>>>
>>>> On Wed, Aug 2, 2017 at 1:31 AM, Mingxing Tian <mx....@qq.com> wrote:
>>>>
>>>>> I use gitolite to manage the Git repository, which automatically 
>>>>> creates the results as follows:
>>>>>
>>>>> [root@host105 testing.git]# ll
>>>>> 总用量 32
>>>>> drwx------  2 git git 4096 8月   2 11:47 branches
>>>>> -rw-------  1 git git   66 8月   2 11:47 config
>>>>> -rw-------  1 git git    0 8月   2 15:31 git-daemon-export-ok
>>>>> -rw-------  1 git git  120 8月   2 15:31 gl-conf
>>>>> -rw-------  1 git git   23 8月   2 11:47 HEAD
>>>>> drwx------  2 git git 4096 8月   2 11:47 hooks
>>>>> drwx------  2 git git 4096 8月   2 11:47 info
>>>>> drwx------ 14 git git 4096 8月   2 15:52 objects
>>>>> drwx------  4 git git 4096 8月   2 11:47 refs
>>>>>
>>>>> I added it to the repository and could not find it, it did not work 
>>>>> properly.
>>>>>
>>>>> And then I see such a sentence in the document, we must convert into a 
>>>>> warehouse can be identified.
>>>>>
>>>>> Note that the repository should be made accessible as a local 
>>>>> repository. Thanks to the distributed nature of Git, that's always 
>>>>> possible. If the repository is not already local, simply git clone it.
>>>>>
>>>>> I tried to find this method is feasible, but this way need to keep the 
>>>>> manual check whether the warehouse update, even if you can write a script 
>>>>> to do, I think it is troublesome.
>>>>>
>>>>
>>>> If your Git repositories are on a different computer than your Trac 
>>>> instance, then you must create a clone that is local to your Trac 
>>>> instance. 
>>>> Is GitoLite running on a different computer?
>>>>
>>>> To update the clone that is local to your Trac instance you must use a 
>>>> notification mechanism. For example, trac-github uses GitHub's webhook to 
>>>> notify Trac to update the local clone.
>>>> https://github.com/trac-hacks/trac-github
>>>>
>>>> - Ryan 
>>>>
>>>>
>>> I use gitolite to build Git server, it and Trac service in the same 
>>> machine above. Is it appropriate to use the trac-github plugin in this case?
>>>
>>
>> If Trac and Gitolite are on the same server, you don't need to do 
>> anything special to make the repositories available to Trac. Just use an 
>> absolute path in the repository path argument. The repositories don't need 
>> to be inside the Environment.
>>
>> - Ryan 
>>
>>>  
>>>
>>
>
> But Trac does not recognize a purely storage type of warehouse, it can 
> only identify the code structure of the warehouse.
>

That's incorrect, as noted in my other reply. Trac can read a bare 
repository or one with a working tree.
 

> Since the repository is created automatically, the conversion to the 
> command line operation should be "git init --bare". 
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to