Ticket #3104 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

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

Reported by: _deepfire@feelingofgreen.ru Assigned to: hvr
Priority: normal Component: GitPlugin
Severity: blocker Keywords:
Cc: TimN Trac Release: 0.12

Description (Last modified by rjollos)

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

gitplugin.diff (352 bytes) - added by anonymous on 05/30/08 19:13:02.
Patch to avoid barfing on submodules

Change History

05/30/08 19:13:02 changed by anonymous

  • attachment gitplugin.diff added.

Patch to avoid barfing on submodules

05/30/08 19:13:56 changed 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.

08/17/08 12:03:02 changed by anonymous

see also #3141

04/08/10 21:40:15 changed by TimN

  • cc set to TimN.

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

06/19/10 11:10:56 changed by kniepbert

  • release changed from 0.11 to 0.12.
  • severity changed from normal to blocker.

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

07/23/10 22:55:29 changed by anonymous

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

09/24/10 07:34:55 changed by anonymous

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

09/27/10 18:13:16 changed by rjollos

  • description changed.
  • summary changed from internal error (got unexpected object kind 'commit') when going to "Browse source" to [Patch] Internal error (got unexpected object kind 'commit') when going to "Browse source".

10/16/10 14:30:19 changed by hvr

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #3104 ([Patch] Internal error (got unexpected object kind 'commit') when going to "Browse source")




Change Properties
Action