Merge pull request #2055 from tombedor/version-error · gitpython-developers/GitPython@9989a18 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit 9989a18

Browse files
authored
Merge pull request #2055 from tombedor/version-error
Add clearer error version for unsupported index error
2 parents 2e10199 + ac3437d commit 9989a18

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)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.