Am Donnerstag, 26. Februar 2015 17:48:57 UTC+1 schrieb RjOllos:
>
> The [trac] repository_dir option was the pre-0.12 way of configuring 
> repositories that only supports a single repository. The option has been 
> removed in Trac 1.1.3, so you should move your repository definitions to 
> the [repositories] section or configure them in the database using 
> TracAdmin or TracWebAdmin.
>
> If you have a list of repositories specified for 
> [trac] repository_sync_per_request then syncing will occur on every 
> request. Better performance will be seen if you setup a post-commit hook to 
> sync the changeset(s) after commit.
>

I changed to hooks now:

[trac]
repository_sync_per_request =
repository_type = git

[ticket]
commit_ticket_update_envelope = []
commit_ticket_update_commands.close =
commit_ticket_update_commands.refs = <ALL>
commit_ticket_update_check_perms = true
commit_ticket_update_notify = true

As my repo gets updated via 5-minutly cron-job doing git p4 rebase I have 
added this hook:

$ cat .git/hooks/post-receive
#!/bin/sh
while read oldrev newrev refname; do
    git rev-list --reverse $newrev ^$oldrev  | \
    while read rev; do
        trac-admin /mnt/data/trac/projects/trac-pmp/ changeset added myrepo 
$rev
    done
done

But committing a change with this message doesn't change anything on the 
ticket:

[ticket #11]
* Added something

However I'm using AnnouncerPlugin for mailing, does that conflict with the 
CommitTicketUpdater? 

-- 
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 http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to