question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: PackingType of packed-Refs not understood

See original GitHub issue

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'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kennethreitzcommented, Nov 25, 2017

Oh, I see what’s going on now.

I confirm that the patch mentioned above fixes the issue.

1reaction
weakishcommented, Feb 8, 2018

@reneruiz Just updated README, added instructions. See 246ec45f74741

Read more comments on GitHub >

github_iconTop Results From Across the Web

PackingType of packed-Refs not understood: '# pack ... - GitHub
Any news? Workaround - install unreleased version :) pip install -U git+http://github.com/gitpython-developers/GitPython.git ...
Read more >
`quibble` fails with git 2.15: Type of packed-Refs not understood
TypeError : PackingType of packed-Refs not understood: '# pack-refs with: peeled fully-peeled sorted'. I guess some git-python version is misbehaving.
Read more >
Developers - PackingType of packed-Refs not understood
Coming soon: A brand new website interface for an even better experience!
Read more >
1508639 – GitPython and git 2.15.0 don't play nicely
After updating git to 2.15.0, and trying to use fedpkg I get: PackingType of packed-Refs not understood: '# pack-refs with: peeled fully-peeled sorted"...
Read more >
Commit - rpms/GitPython ... - Fedora Package Sources
+ + if line.startswith('# pack-refs with:') and 'peeled' not in line: 32. + raise TypeError("PackingType of packed-Refs not understood: %r" % line).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found