Skip to content

PackingType of packed-Refs not understood: '# pack-refs with: peeled fully-peeled sorted' #687

Closed
redkyn/assigner
#111
@apexo

Description

@apexo
File "/usr/lib/python2.7/dist-packages/git/repo/base.py", line 335, in tags
  return TagReference.list_items(self)
File "/usr/lib/python2.7/dist-packages/git/util.py", line 932, in list_items
  out_list.extend(cls.iter_items(repo, *args, **kwargs))
File "/usr/lib/python2.7/dist-packages/git/refs/symbolic.py", line 613, in _iter_items
  for sha, rela_path in cls._iter_packed_refs(repo):  # @UnusedVariable
File "/usr/lib/python2.7/dist-packages/git/refs/symbolic.py", line 97, in _iter_packed_refs
  raise TypeError("PackingType of packed-Refs not understood: %r" % line)

I guess the "sorted" token can be safely ignored; _iter_packed_refs() could probably be somewhat improved by adding a whitelist of supported tokens, the current code looks a bit fragile (but then, I don't know what the syntax and semantics for the packed-refs header is).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions