Hello,

When you do a push to a repository "bare" installed on the same server where
the Trac. Returns the message:


remote: TracError: Unsupported version control system "git": Can't find an
> appropriate component, maybe the corresponding plugin was not enabled?
>

1. I rename this script [1] to "/my_repo/hooks/post-receive."

2. My version is Trac1.0. I need to install any package? Still need to install
the trac-git?

3. In Trac browser code I can see perfectly my repository.

The problem is only integrate commits(comments) with Trac. I am also using the
correct syntax for commit:

$ git commit-m "Refs #TicketNumber - foobar"
>


[1]
http://trac-hacks.org/attachment/wiki/GitPlugin/trac-post-receive-hook-0.12-new-commits-from-all-branches-with-logfile.py


My Enviroment:

git version 1.7.10.4
Trac1.0
Ubuntu 12.10 (I am ashamed!)

trac.ini:

[components]
> repository_type = git
> repository_dir =
> repository_sync_per_request =
> ticket_changesets.* = enabled
> ticketchangesets.* = enabled
> tracext.git.* = enabled
> tracopt.versioncontrol.git.* = enabled
> ticketchangesets.commit_updater.committicketupdater = enabled
> ticketchangesets.web_ui.commitmessagemacro = enabled
> tracopt.ticket.commit_updater.committicketreferencemacro = enabled
> tracopt.ticket.commit_updater.committicketupdater = enabled
>
> [git]
> cached_repository = false
> git_bin = /usr/bin/git
> git_fs_encoding = utf-8
> persistent_cache = false
> shortrev_len = 6
> trac_user_rlookup = true
> use_committer_id = true
> use_committer_time = false
> wiki_shortrev_len = 7
>
> [repositories]
> .alias = dbatez
> dbatez.description = This is the ''main'' project dbatez.
> dbatez.dir =  /var/trac/projects/repo/zap.git
> dbatez.hidden = true
> dbatez.type = git
> dbatez.url =
> zimora.description = This is the secondary library code ''Zim Oracle''.
> zimora.dir = /opt/git/zimora.git
> zimora.type = git
> zimora.url =
>
>
>
> [ticket]
> commit_ticket_update_check_perms = false
> commit_ticket_update_commands.close = close closed closes fix fixed fixes
> commit_ticket_update_commands.refs = <ALL>
> commit_ticket_update_envelope = []
> commit_ticket_update_notify = true
>







@ivanelson
[]s

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to