Skip to content

Commit ac3437d

Browse files
committed
Add clearer error version for unsupported index error
1 parent 2e10199 commit ac3437d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/index/fun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def read_header(stream: IO[bytes]) -> Tuple[int, int]:
207207
version, num_entries = unpacked
208208

209209
# TODO: Handle version 3: extended data, see read-cache.c.
210-
assert version in (1, 2)
210+
assert version in (1, 2), "Unsupported git index version %i, only 1 and 2 are supported" % version
211211
return version, num_entries
212212

213213

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy