Modify

Opened 17 years ago

Closed 17 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/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/trac/wiki/web_ui.py", line 135, in process_request
    self._render_view(req, db, page)
  File "/usr/lib/python2.5/site-packages/trac/wiki/web_ui.py", line 444, in _render_view
    'page_html': wiki_to_html(page.text, self.env, req),
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", 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/formatter.py", line 824, in format
    result = re.sub(self.wiki.rules, self.replace, line)
  File "re.py", line 142, in sub
    return _compile(pattern, 0).sub(repl, string, count)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 770, in replace
    replacement = self.handle_match(fullmatch)
  File "/usr/lib/python2.5/site-packages/trac/wiki/formatter.py", line 763, in handle_match
    return external_handler(self, match, fullmatch)
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/changeset.py", line 697, in <lambda>
    y, z))
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/changeset.py", line 715, in _format_changeset_link
    changeset = self.env.get_repository().get_changeset(rev)
  File "build/bdist.linux-i686/egg/gitplugin/git_fs.py", line 63, in get_changeset
    return GitChangeset(self.git, rev)
  File "build/bdist.linux-i686/egg/gitplugin/git_fs.py", line 189, in __init__
    (msg,props) = git.read_commit(sha)
  File "build/bdist.linux-i686/egg/gitplugin/PyGIT.py", line 77, in read_commit
    line = lines.pop(0)
IndexError: pop from empty list

Attachments (0)

Change History (2)

comment:1 Changed 17 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting.

comment:2 Changed 17 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
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.