Closed
Description
As of Git 2.15 GitPython has some issues with the new format of packed-ref headers, resulting in PyGitUp crashing whenever doing a git up
.
$ git up
Traceback (most recent call last):
File "C:\Users\Pleun\AppData\Local\scoop\apps\python\3.5.1\scripts\git-up-script.py", line 9, in <module>
load_entry_point('git-up==1.3.0', 'console_scripts', 'git-up')()
File "c:\users\pleun\appdata\local\scoop\apps\python\3.5.1\lib\site-packages\git_up-1.3.0-py3.5.egg\EGG-INFO\scripts\gitup.py", line 585, in run
gitup = GitUp()
File "c:\users\pleun\appdata\local\scoop\apps\python\3.5.1\lib\site-packages\git_up-1.3.0-py3.5.egg\EGG-INFO\scripts\gitup.py", line 147, in __init__
if not any(b.tracking_branch() for b in self.repo.branches):
File "C:\Users\Pleun\AppData\Local\scoop\apps\python\3.5.1\lib\site-packages\gitpython-1.0.0-py3.5.egg\git\repo\base.py", line 237, in heads
return Head.list_items(self)
File "C:\Users\Pleun\AppData\Local\scoop\apps\python\3.5.1\lib\site-packages\gitpython-1.0.0-py3.5.egg\git\util.py", line 714, in list_items
out_list.extend(cls.iter_items(repo, *args, **kwargs))
File "C:\Users\Pleun\AppData\Local\scoop\apps\python\3.5.1\lib\site-packages\gitpython-1.0.0-py3.5.egg\git\refs\symbolic.py", line 594, in _iter_items
for sha, rela_path in cls._iter_packed_refs(repo):
File "C:\Users\Pleun\AppData\Local\scoop\apps\python\3.5.1\lib\site-packages\gitpython-1.0.0-py3.5.egg\git\refs\symbolic.py", line 98, 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'
See gitpython-developers/GitPython#687 and the PR gitpython-developers/GitPython#689. I'm guessing PyGitUp will need a version bump when a new GitPython version gets released.
Metadata
Metadata
Assignees
Labels
No labels