New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git: "-LX,Y:file" and "-- file" are incompatible #1139
Comments
@derrickstolee Thank you for the report! I will update the code and remove the |
Thanks, @eamodio. I think that also the issue is the |
GitLens 10.2.3 has been published with the fix, and I'll get it fixed in the upcoming v11 release |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The important issue here is using Git v2.29.x. Please see this Git mailing list discussion for more context.
The basics here is that GitLens is combining two options that should not be allowed:
The use of
--follow
and-- file
with-LX,Y:file
should not be compatible in Git. So far, Git has not complained and worked correctly. In v2.29.[0-2], Git changed logic slightly such that this results in a segfault!The plan of record is for Git to ship a new version that fixes the segfault. However, this might not be the end of the fix. Likely, such use will lead to a failed Git command with a warning message over
stderr
.Possibly the logic here needs to change:
That is, the
|| renames
is probably invalid here. We don't want to combine-- file
with-LX,Y:file
. In general Git would interpret those as two separate requests for history limitation that are incompatible.To assist GitLens users who are on a buggy version of Git and to future-proof GitLens against a possibly disruptive change in a later version of Git, it might be best to change this logic now.
The text was updated successfully, but these errors were encountered: