Edgewall Software

Opened 11 years ago

Last modified 11 years ago

#10997 closed defect

"GIT backend not available" on OpenSUSE — at Initial Version

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.0.1
Component: plugin/git Version: 1.0
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Git module doesn't work on OpenSUSE. The issue from th:#8682 and https://bugzilla.novell.com/show_bug.cgi?id=697156.

Trac [/tmp/tracenv]> repository resync ''
17:23:16 Trac[git_fs] ERROR: GitError: Could not retrieve GIT version (tried to execute/parse '/usr/bin/git-receive-pack --version' but got ValueError('need more than 0 values to unpack',))
TracError: GIT backend not available

/usr/bin/git in OpenSUSE is a symbolic link and Trac wrongly follows the link.

linux@linux:/> ls -l /usr/bin/git
lrwxrwxrwx 1 root root 18 Dec 26 16:58 /usr/bin/git -> ../lib/git/git-add

Trac should use Option instead of PathOption, confirmed with OpenSUSE 12.2.

  • tracopt/versioncontrol/git/git_fs.py

    old new  
    199199    git_fs_encoding = Option('git', 'git_fs_encoding', 'utf-8',
    200200        """Define charset encoding of paths within git repositories.""")
    201201
    202     git_bin = PathOption('git', 'git_bin', '/usr/bin/git',
     202    git_bin = Option('git', 'git_bin', '/usr/bin/git',
    203203        """Path to git executable (relative to the Trac configuration folder,
    204204        so better use an absolute path here).""")
    205205

Change History (0)

Note: See TracTickets for help on using tickets.