Opened 4 years ago

Closed 4 years ago

Last modified 19 months ago

#7930 closed defect (fixed)

resync problem for git

Reported by: mountainpaul@… Owned by: hvr
Priority: normal Component: GitPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

git version
trac-admin 0.12
trac-git commit

I try to do the following:
from the tracs project_env I run trac-admin .
then repository resync *
This results in

TypeError: 'NoneType' object is unsubscriptable

Relevant trac.ini sections

## let Trac cache meta-data via CachedRepository wrapper; default: false
cached_repository = false

## disable automatic garbage collection for in-memory commit-tree cache; default: false
persistent_cache = false

## length revision sha-sums should be tried to be abbreviated to (must be >= 4 and <= 40); default: 7
shortrev_len = 7

## ( minimum length for which hex-strings will be interpreted as commit ids in wiki context; default: 40
wiki_shortrev_len = 40

## executable file name (in case of doubt use absolute path!) of git binary; default: 'git'
git_bin = /usr/bin/git

## ( define charset encoding of paths stored within git repository; default: 'utf-8'
git_fs_encoding = utf-8

## ( enable reverse mapping of git email addresses to trac user ids; default: false
trac_user_rlookup = false

## ( use git-committer id instead of git-author id as changeset owner; default: true
use_committer_id = true

## ( use git-committer timestamp instead of git-author timestamp as changeset time; default: true
use_committer_time = true

repository_dir = /var/git-repos/hearth.git
repository_type = git


tracext.git.* = enabled 

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by rjollos

  • Description modified (diff)

comment:2 Changed 4 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

Resolved: The system was reading the global(python 2.5 site-packages) tracext (version .11), instead of the local one (version for .12).

Ideally, it seems a plugin from the local env, should be loaded instead of one from the global env if it exists.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.