#6629 "list index out of range" error on git _iter_commits_with_refs

v1.0.1
closed
General
Cory Johns
2015-08-20
2013-09-04
No

This was introduced in [#5775]

File '/var/local/allura/Allura/allura/templates/widgets/repo/tree_widget.html', line 21 in top-level template code
  {% set ls = list(tree.ls()) %}
File '/var/local/allura/Allura/allura/model/repo.py', line 532 in ls
  last_commit = LastCommit.get(self, create=False)
File '/var/local/allura/Allura/allura/model/repo.py', line 813 in get
  last_commit_id = cls._last_commit_id(tree.commit, path)
File '/var/local/allura/Allura/allura/model/repo.py', line 787 in _last_commit_id
  rev = commit.repo.log(commit._id, path, id_only=True).next()
File '/var/local/allura/ForgeGit/forgegit/model/git_repo.py', line 307 in log
  for ci, refs, renamed in self._iter_commits_with_refs(*args):
File '/var/local/allura/ForgeGit/forgegit/model/git_repo.py', line 393 in _iter_commits_with_refs
  name_stat_parts = commit_lines[1].split(' ')
IndexError: list index out of range

Related

Tickets: #5775
Tickets: #6686

Discussion

  • Dave Brondsema

    Dave Brondsema - 2013-09-04

    Can replicate with this repo: git://git.code.sf.net/p/xmhf/xmhf

     
  • Dave Brondsema

    Dave Brondsema - 2013-09-05
    • status: open --> code-review
    • assigned_to: Dave Brondsema
    • Size: --> 2
     
  • Cory Johns

    Cory Johns - 2013-09-05
    • status: code-review --> closed
    • QA: Cory Johns
     

Log in to post a comment.