Modify

Opened 9 years ago

Closed 6 years ago

#3104 closed defect (fixed)

[Patch] Internal error (got unexpected object kind 'commit') when going to "Browse source"

Reported by: _deepfire@… Owned by: Herbert Valerio Riedel
Priority: normal Component: GitPlugin
Severity: blocker Keywords:
Cc: Tim Niemueller Trac Release: 0.12

Description (last modified by Ryan J Ollos)

relevant software versions: trac 0.11rc1, git 1.5.5.1, latest GitPlugin, as of May 29 there appeared to be no way to get the traceback for the 0.11 version of the plugin, as opposed to the 0.10 one

the part of the logfile that seemed relevant:

2008-05-30 04:57:37,249 Trac[default_workflow] DEBUG: Workflow actions at initialization: {'resolve': {'operations': [u'set_resolution'], 'name': 'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'accept': {'operations': [u'set_owner_to_self'], 'name': 'accept', 'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, 'leave': {'operations': [u'leave_status'], 'name': 'leave', 'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, 'reopen': {'operations': [u'del_resolution'], 'name': 'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], 'permissions': [u'TICKET_CREATE']}, 'reassign': {'operations': [u'set_owner'], 'name': 'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new', u'assigned', u'accepted', u'reopened'], 'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}}
2008-05-30 04:57:37,261 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect
2008-05-30 04:57:37,262 Trac[main] DEBUG: Dispatching <Request "GET u'/browser'">
2008-05-30 04:57:37,345 Trac[git_fs] INFO: detected GIT version 1.5.5.1
2008-05-30 04:57:37,515 Trac[svn_fs] DEBUG: Subversion bindings imported
2008-05-30 04:57:37,568 Trac[PyGIT] DEBUG: PyGIT.Storage instance 141808716 constructed
2008-05-30 04:57:37,569 Trac[PyGIT] DEBUG: requested PyGIT.Storage instance 141808716 for '/mnt/enter/git/common-db/.git/'
2008-05-30 04:57:37,571 Trac[git_fs] INFO: enabled CachedRepository for '/mnt/enter/git/common-db/.git/'
2008-05-30 04:57:37,748 Trac[PyGIT] DEBUG: triggered rebuild of commit tree db for 141808716
2008-05-30 04:57:38,090 Trac[PyGIT] DEBUG: rebuilt commit tree db for 141808716 with 54 entries
2008-05-30 04:57:38,098 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2008-05-30 04:57:38,947 Trac[main] WARNING: 500 Trac Error (internal error (got unexpected object kind 'commit'))

Attachments (1)

gitplugin.diff (352 bytes) - added by anonymous 9 years ago.
Patch to avoid barfing on submodules

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by anonymous

Attachment: gitplugin.diff added

Patch to avoid barfing on submodules

comment:1 Changed 9 years ago by anonymous

I just had this happen myself. Basically GitPlugin is not handling submodules.

Here is a patch for it. I disclaim all rights to these changes. Feel free to use them under the same license as GitPlugin.

comment:2 Changed 9 years ago by anonymous

see also #3141

comment:3 Changed 7 years ago by Tim Niemueller

Cc: Tim Niemueller added; anonymous removed

Recently ran into this. Is there a chance this simple and effective patch is applied?

comment:4 Changed 7 years ago by kniepbert

Severity: normalblocker
Trac Release: 0.110.12

I installed 0.12 (tar and svn) and got the same issue. I can`t find the git_fs-file anymore. Any idea where to fix this commit-issue?

Cheers

comment:5 Changed 7 years ago by anonymous

Would you please apply this patch until a real patch is done? At least you can browse your code with this applied.

comment:6 Changed 6 years ago by anonymous

im having this problem as well, could you please provide a work-around until its fixed.

comment:7 Changed 6 years ago by Ryan J Ollos

Description: modified (diff)
Summary: internal error (got unexpected object kind 'commit') when going to "Browse source"[Patch] Internal error (got unexpected object kind 'commit') when going to "Browse source"

comment:8 Changed 6 years ago by Herbert Valerio Riedel

Resolution: fixed
Status: newclosed

Modify Ticket

Action
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.