File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,15 @@ def _iter_packed_refs(cls, repo):
96
96
if not line :
97
97
continue
98
98
if line .startswith ('#' ):
99
- if line .startswith ('# pack-refs with:' ) and not line .endswith ('peeled' ):
99
+ # "# pack-refs with: peeled fully-peeled sorted"
100
+ # the git source code shows "peeled",
101
+ # "fully-peeled" and "sorted" as the keywords
102
+ # that can go on this line, as per comments in git file
103
+ # refs/packed-backend.c
104
+ # I looked at master on 2017-10-11,
105
+ # commit 111ef79afe, after tag v2.15.0-rc1
106
+ # from repo https://github.com/git/git.git
107
+ if line .startswith ('# pack-refs with:' ) and 'peeled' not in line :
100
108
raise TypeError ("PackingType of packed-Refs not understood: %r" % line )
101
109
# END abort if we do not understand the packing scheme
102
110
continue
You can’t perform that action at this time.
0 commit comments