On Sunday, February 24, 2019 at 6:31:55 AM UTC-8, Jenia Habinsky wrote:
>
> I need to update Trac with repo commit messages to automatically close 
> tickets. This requires running trac-admin via git post-update hook to push 
> latest commit info into trac.
>
> My remote git repo resides on simple network file share so I don't have 
> git server to run the hook.
>
>
> Running hooks on client machines is not a good option for me since then I 
> will have to maintain hooks across many machines and some of them don't 
> even have access to Trac server.
>
>
> It looks like I need to run a scheduled task on Trac server to sync it 
> with the repos. 
>
>
> What git command I should run to sync Trac efficiently without making it 
> scan the whole history of several repos each time?
>
>
> Is there better alternatives?
>


You can probably use the "repository sync" command without specifying a 
revision.

repository sync <repos> [rev]

    Resume synchronization of repositories

    It works like `resync`, except that it doesn't clear the already
    synchronized changesets, so it's a better way to resume an interrupted
    `resync`.

    See `resync` help for detailed usage.


https://trac.edgewall.org/wiki/TracAdmin

- Ryan 

-- 
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 [email protected].
To post to this group, send email to [email protected].
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