Opened 16 years ago

Closed 16 years ago

#1721 closed defect (duplicate)

Pop from empty list error

Reported by: anonymous Owned by: Herbert Valerio Riedel
Priority: normal Component: GitPlugin
Severity: major Keywords:
Cc: Trac Release: 0.10

Description (last modified by Noah Kantrowitz)

Trac crashes when accessing /wiki/WikiFormatting

I also have the webadmin plugin installed.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/", line 406, in dispatch_request
  File "/usr/lib/python2.5/site-packages/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 135, in process_request
    self._render_view(req, db, page)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 444, in _render_view
    'page_html': wiki_to_html(page.text, self.env, req),
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 1001, in wiki_to_html
    Formatter(env, req, absurls, db).format(wikitext, out, escape_newlines)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 824, in format
    result = re.sub(, self.replace, line)
  File "", line 142, in sub
    return _compile(pattern, 0).sub(repl, string, count)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 770, in replace
    replacement = self.handle_match(fullmatch)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 763, in handle_match
    return external_handler(self, match, fullmatch)
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/", line 697, in <lambda>
    y, z))
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/", line 715, in _format_changeset_link
    changeset = self.env.get_repository().get_changeset(rev)
  File "build/bdist.linux-i686/egg/gitplugin/", line 63, in get_changeset
    return GitChangeset(self.git, rev)
  File "build/bdist.linux-i686/egg/gitplugin/", line 189, in __init__
    (msg,props) = git.read_commit(sha)
  File "build/bdist.linux-i686/egg/gitplugin/", line 77, in read_commit
    line = lines.pop(0)
IndexError: pop from empty list

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting.

comment:2 Changed 16 years ago by anonymous

Resolution: duplicate
Status: newclosed

I think this is a dup of #1639, which has a patch.

Modify Ticket

Change Properties
Set your email in Preferences
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.