TypeError: PackingType of packed-Refs not understood
See original GitHub issuelegit 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:
- Created 6 years ago
- Reactions:5
- Comments:13 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh, I see what’s going on now.
I confirm that the patch mentioned above fixes the issue.
@reneruiz Just updated README, added instructions. See 246ec45f74741