Skip to content

TypeError: PackingType of packed-Refs not understood #225

@samuelcole

Description

@samuelcole

legit broke with git version 2.15.0

$ git sync
Traceback (most recent call last):
  File "/usr/local/bin/legit", line 11, in <module>
    load_entry_point('legit==0.4.1', 'console_scripts', 'legit')()
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/legit/cli.py", line 48, in main
    command.__call__(args)
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/legit/cli.py", line 502, in __call__
    return self.fn(*args, **kw_args)
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/legit/cli.py", line 204, in cmd_sync
    if branch in get_branch_names(local=False):
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/legit/scm.py", line 290, in get_branch_names
    branches = get_branches(local=local, remote_branches=remote_branches)
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/legit/scm.py", line 265, in get_branches
    for b in remote.refs:
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/git/remote.py", line 527, in refs
    out_refs.extend(RemoteReference.list_items(self.repo, remote=self.name))
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/git/util.py", line 932, in list_items
    out_list.extend(cls.iter_items(repo, *args, **kwargs))
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/git/refs/symbolic.py", line 592, in _iter_items
    for sha, rela_path in cls._iter_packed_refs(repo):  # @UnusedVariable
  File "/usr/local/Cellar/legit/0.4.1/libexec/lib/python2.7/site-packages/git/refs/symbolic.py", line 92, in _iter_packed_refs
    raise TypeError("PackingType of packed-Refs not understood: %r" % line)
TypeError: PackingType of packed-Refs not understood: '# pack-refs with: peeled fully-peeled sorted'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions