Skip to content

Conversation

@bk2204
Copy link
Member

@bk2204 bk2204 commented May 2, 2022

In some cases, we can end up with a version of Git that contain a filter-process pkt-line without an equals. (What exactly these contents are is not known.) This causes us to panic when we split, since v[1] doesn't exist in the array. Let's fix this by simply ignoring the header if it doesn't contain an equals since we wouldn't care about its value anyway.

Fixes #4974

In some cases, we can end up with a version of Git that contain a
filter-process pkt-line without an equals.  (What exactly these contents
are is not known.)  This causes us to panic when we split, since `v[1]`
doesn't exist in the array.  Let's fix this by simply ignoring the
header if it doesn't contain an equals since we wouldn't care about its
value anyway.
@bk2204 bk2204 marked this pull request as ready for review May 2, 2022 18:47
@bk2204 bk2204 requested a review from a team as a code owner May 2, 2022 18:47
@bk2204 bk2204 merged commit adee97a into git-lfs:main May 10, 2022
@bk2204 bk2204 deleted the panic-scanner branch May 10, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Help triaging git-lfs checkout failure

2 participants