Opened 4 years ago

Last modified 3 years ago

#8465 new defect

Trac[git_fs] ERROR: GitError: Could not retrieve GIT version

Reported by: anonymous Owned by: hvr
Priority: normal Component: GitPlugin
Severity: blocker Keywords:
Cc: boris.savelev@…, stuge Trac Release: 0.12


Hi, all! I have a problem with my trac-and-git. I got error "

Warning: Can't synchronise with repository "(default)" (GIT backend not available). Look in the Trac log for more information."

And in logs

Trac[git_fs] ERROR: GitError: Could not retrieve GIT version.

My config:

cached_repository = false 
persistent_cache = false
shortrev_len = 7
git = /usr/bin/git

If I write git_bin instead - another error occurs

TypeError: 'NoneType' object is unsubscriptable

and in logs we have:

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/", line 513, in _dispatch_request
  File "build/bdist.linux-x86_64/egg/trac/web/", line 200, in dispatch
  File "build/bdist.linux-x86_64/egg/trac/web/", line 346, in _pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "build/bdist.linux-x86_64/egg/trac/versioncontrol/", line 330, in pre_process_request
    repo = self.get_repository(reponame)
  File "build/bdist.linux-x86_64/egg/trac/versioncontrol/", line 526, in get_repository
    repos = connector.get_repository(rtype, rdir, repoinfo.copy())
  File "/usr/lib/python2.5/site-packages/tracext/git/", line 159, in get_repository
  File "/usr/lib/python2.5/site-packages/tracext/git/", line 177, in __init__
    Repository.__init__(self, "git:"+path, None, log)
  File "build/bdist.linux-x86_64/egg/trac/versioncontrol/", line 730, in __init__
    self.reponame = params['name']
TypeError: 'NoneType' object is unsubscriptable

I found similar decisions of this trouble, but not for 0.12 version.

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by bsavelev

  • Cc boris.savelev@… added; anonymous removed
  • Severity changed from normal to blocker

also sa #8519

I have the same issue

comment:2 Changed 4 years ago by mgarraha

May be caused by #8682.

comment:3 Changed 4 years ago by anonymous

I resolve my problem with restarting fastcgi trac process sometimes. I don't know what it was

comment:4 Changed 3 years ago by leskop@…

I can confirm this issue. I'm getting same message on Windows 7 64bit. Using BitNami Trac with tracgit plugin

comment:5 Changed 3 years ago by stuge

  • Cc stuge added

Add Comment

Modify Ticket

as new The owner will remain hvr.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.