Modify

Opened 4 years ago

Last modified 3 years ago

#8260 new defect

Browse with 'bare' repository fails

Reported by: shogsbro Owned by: hvr
Priority: high Component: GitPlugin
Severity: critical Keywords: bare repository
Cc: Trac Release: 0.12

Description

When adding a 'bare' repo (as initialized by gitolite post-receive hook), GitPlugin shows an error when 'Browse Source' is clicked.

GitError: read_commit called with empty commit_id

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by Benjamin

  • Keywords bare repository added
  • Priority changed from normal to high
  • Severity changed from normal to critical

Is there an update on this issue? The only chance I see is to clone the bare repo automatically somewhere else and point to that location.

The issue is e.g. discussed here

http://stackoverflow.com/questions/5183049/trouble-with-a-git-bare-repository-after-upgrading-trac-from-0-11-to-0-12

comment:2 Changed 3 years ago by magon@…

I have problem with bare repositories generated by gitolite. It had the same symptoms but it showed up, that the problem is with file system permissions. I had to change REPO_UMASK of gitolite to '0027' and add 'git' group to apache user.

But your problem seem that you have bare repository and in addition it is completly empty. Adding first commit to it might help.

Add Comment

Modify Ticket

Action
as new The owner will remain hvr.
Author


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

 
Note: See TracTickets for help on using tickets.