I have several Trac SVN projects that I have been using for a long time with no problems (other than subversion glitches). I have been trying for the last couple of days to set up a small project using Trac Git. So far I have been unsuccessful. I would like to migrate the main projects over to Git providing I can get this initial project working correctly.
I have several screen captures that show the setup, trac.ini, the log info, the errors, etc.
Hopefully someone can provide some help. I have gone through everything I could find on the web, some of it several times, the Trac docs, etc.
http://www.journey-of-flight.com/bh_trac/osx_trac_svn_git_setup.php
I am running on OS X Lion
Thanks for any help,
Bill Hernandez
--
Plano, Texas
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/-/E35xl1g5Dv4J.
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.
Ethan,Thanks for replying...I tried :-----------------------For Trac 0.12-----------------------tried : $ sudo easy_install http://github.com/hvr/trac-git-plugin/tarball/master---> and it installed without any errors.ConfigurationSee also wiki:TracIni#git-section of your current Trac installation (if GitPlugin is enabled), for an up-to-date list of customizable [git] settings.---> Warning: Can't synchronize with repository "(default)"---> (GIT backend not available). Look in the Trac log for more---> information.---> Error: Not Found---> No handler matched request to /wiki:TracIni-----------------------tried : http://127.0.0.1:8000/git_net---> Warning: Can't synchronize with repository "(default)"---> (GIT backend not available). Look in the Trac log for more---> information.tried : $ sudo trac-admin /DATA/bh_repository/bh_trac/git_net repository resync "*"Password:---> Done.when I look at the log since the last restart the only error I see is:Trac[git_fs] ERROR: GitError: Could not retrieve GIT version (tried to execute/parse '/usr/bin/git --version' but got ValueError('too many values to unpack',))tried : $ which git---> /usr/bin/gittried : $ /usr/bin/git --version---> git version 1.7.7.5 (Apple Git-26)but as you can see the terminal gives me a valid versionAny ideas ?Thanks again,Bill HernandezPlano, Texas
when I look at the log since the last restart the only error I see is:Trac[git_fs] ERROR: GitError: Could not retrieve GIT version (tried to execute/parse '/usr/bin/git --version' but got ValueError('too many values to unpack',))
( 1 ) I am new to git, and githubwent to & logged in : https://github.com/hvr/trac-git-plugin/pull/15
There's a patch attached to that request which looks like it should fix this exact error you're seeing if you make the necessary change to your copy of the plugin's code and reload the web server. Can you try that and see if it starts to work (or at least gets you farther)?
( 2 ) I have no clue how to patch, the install (can you point me in the right direction. I know it's a lot to ask but perhaps you might be so kind to list the steps ?. I wouldn't ask, but I've been working on this for days now..), which was :
( 3 ) I posted this : http://trac.edgewall.org/ticket/10728and they basically were not interested in even looking at my problem...( 4 ) Would you have better luck trying to get this fixed, especially for the new release 0.13 ?
I found
There's a patch attached to that request which looks like it should fix this exact error you're seeing if you make the necessary change to your copy of the plugin's code and reload the web server. Can you try that and see if it starts to work (or at least gets you farther)?( 2 ) I have no clue how to patch, the install (can you point me in the right direction. I know it's a lot to ask but perhaps you might be so kind to list the steps ?. I wouldn't ask, but I've been working on this for days now..), which was :$ sudo easy_install http://github.com/hvr/trac-git-plugin/tarball/master
Matthew,This worked perfectly, thanks a million...Being new to GIT having the commands in the correct order is fantastic. I can now read up on these commands, and even though the general gist makes sense, it will actually be extremely helpful to read up on the process of patching. Not having worked with python before, I didn't realize is that it was an interpreted/compiled language. This has been really interesting, and I would have nerver gotten this working without all the great help. I can begin converting the other SVN repositories to GIT, throw away my subversion books and get some new git material to read...Many thanks also to Ethan Jucovy, and Peter Suter for helping...$ git clone https://github.com/hvr/trac-git-plugin.git$ cd trac-git-plugin/$ git remote add patch https://github.com/choey/trac-git-plugin.git$ git fetch patch$ git merge patch/master$ python setup.py bdist_egg## sudo cp dist/TracGit-0.12.0.5dev-py2.6.egg <wherever the egg goes>$ sudo cp dist/TracGit-0.12.0.5dev-py2.7.egg /Library/Python/2.7/site-packages/<restart trac>$ export TRAC_ENV_INDEX_TEMPLATE=/bh_repository/trac_support/templates/projects.html$ /usr/local/bin/tracd --port=8000 -e /bh_repository/bh_trac --basic-auth=*,/bh_repository/bh_trac/.htpasswd,/bh_repository/bh_tracServer starting in PID 983.Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/Using HTTP/1.1 protocol version127.0.0.1 - - [19/Jun/2012 11:34:36] "GET / HTTP/1.1" 200 -127.0.0.1 - - [19/Jun/2012 11:34:39] "GET /git_net HTTP/1.1" 200 -