Modify

Opened 6 years ago

Closed 4 years ago

#3104 closed defect (fixed)

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

Reported by: _deepfire@… Owned by: 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 (1)

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

Download all attachments as: .zip

Change History (9)

Changed 6 years ago by anonymous

Patch to avoid barfing on submodules

comment:1 Changed 6 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 6 years ago by anonymous

see also #3141

comment:3 Changed 4 years ago by TimN

  • Cc TimN added

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

comment:4 Changed 4 years ago by kniepbert

  • Severity changed from normal to blocker
  • Trac Release changed from 0.11 to 0.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 4 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 4 years ago by anonymous

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

comment:7 Changed 4 years ago by rjollos

  • Description modified (diff)
  • 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"

comment:8 Changed 4 years ago by hvr

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from hvr. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.