Re: [Trac] Unsupported version control system "git"

620 views
Skip to first unread message

Benjamin Lau

unread,
Dec 19, 2012, 4:53:28 PM12/19/12
to trac-...@googlegroups.com

Git isn't enabled. In the Admin ¦ Plugins ¦ Trac section there shout be a setting towards the bottom for tracopt.repository.Git (or something like that). You need to enable that.

Ben

On Dec 19, 2012 1:45 PM, "Henrik Granlund" <htgra...@gmail.com> wrote:
Hi guys,

I've looked all over on info about git configuration in trac 1.0 but I'm starting to give up hope on this.. The problem is what some other have gotten on previous versions:

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.


What it boils down to is I've set the following (and tried many variants aswell :( )

[trac]
repository_dir = /opt/git/sc2genetics2/.git
repository_type = git

[git]
git_bin = /usr/bin/git


tried with a git --init bare first but gave that up since it sounds like its not intended use.
the repository is a "git clone" and I've also added chmod -R 777 sc2genetics2/  to avoid permission problems but still no success.


I've added logging but It doesn't show anything of value: (I'm assuming DEBUG is lowest level)

[logging]
log_file = trac.log
log_level = DEBUG
log_type = file

2012-12-19 22:04:14,488 Trac[session] DEBUG: Retrieving session for ID u'gran'
2012-12-19 22:04:14,498 Trac[api] INFO: Synchronized '(default)' repository in 0.02 seconds
2012-12-19 22:05:19,675 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/roadmap'">
2012-12-19 22:05:19,676 Trac[chrome] DEBUG: Prepare chrome data for request
2012-12-19 22:05:19,681 Trac[session] DEBUG: Retrieving session for ID u'gran'
2012-12-19 22:05:19,694 Trac[api] INFO: Synchronized '(default)' repository in 0.02 seconds


git version 1.7.1
Trac1.0
Genshi0.6 (without speedups)
pysqlite 2.6.3
Python2.6.6 (r266:84292, Dec 16 2012, 14:05:33) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
setuptools 0.6c11
SQLite3.7.15
jQuery1.7.2


Does anyone have any tips? I'm running out of ideas..

Thanks in advance!

Br
Henrik

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/S7dscB3WEOYJ.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Henrik Granlund

unread,
Dec 20, 2012, 7:32:19 AM12/20/12
to trac-...@googlegroups.com
Thank you so much. That was the missing part. I though I had read it carefully and followed everything but sometimes you just stare yourself blind on a piece of text.

I think I got to hung up on the following line:

If all you need is to work with a single git environment, it is enough to modify the [trac] section in your trac.ini so that it contains the appropriate values for the repository_type andrepository_dir options, like in the above example.

Thanks again!

//Henrik

Greg Troxel

unread,
Dec 20, 2012, 8:33:35 AM12/20/12
to Henrik Granlund, trac-...@googlegroups.com

Henrik Granlund <htgra...@gmail.com> writes:

> [trac]
> repository_dir = /opt/git/sc2genetics2/.git
> repository_type = git

Also, it's unusual to have a bare repository with that kind of path (but
not wrong or non-functional). The typical path would be
/opt/git/sc2genetics2.git
which is a clue that the directory contains only what is usually in .git
in a non-bare clone.

When one clones as

git clone remote-system:/opt/git/sc2genetics2.git

you get a directory sc2genetics2.

> tried with a git --init bare first but gave that up since it sounds like
> its not intended use.
> the repository is a "git clone" and I've also added chmod -R 777
> sc2genetics2/ to avoid permission problems but still no success.

Using a non-bare repository is odd. But perhaps this is the copy that
trac looks at, rather than the official repository.


What I do is to have a bare repository on the same machine as the trac
server, and this repository is the official repository for the project.
Reply all
Reply to author
Forward
0 new messages