Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5a358f2

Browse files
author
Brenda J. Butler
committed
recognize the new packed-ref header format
as long as line contains "peeled", accept itfixes the PackingType of packed-Refs not understood:# pack-refs with: peeled fully-peeled sortedproblem
1 parentf237620 commit5a358f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎git/refs/symbolic.py‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,15 @@ def _iter_packed_refs(cls, repo):
9696
ifnotline:
9797
continue
9898
ifline.startswith('#'):
99-
ifline.startswith('# pack-refs with:')andnotline.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+
ifline.startswith('# pack-refs with:')and'peeled'notinline:
100108
raiseTypeError("PackingType of packed-Refs not understood: %r"%line)
101109
# END abort if we do not understand the packing scheme
102110
continue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp