Skip to content
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 version 2.43.0 breaks git version checks #523

Closed
mattieruth opened this issue Nov 30, 2023 · 5 comments
Closed

git version 2.43.0 breaks git version checks #523

mattieruth opened this issue Nov 30, 2023 · 5 comments

Comments

@mattieruth
Copy link

mattieruth commented Nov 30, 2023

In 2.43.0, the git fast-export -h output appears to have changed such that all the args are now prefixed with [no-] breaking the string parse checks here and here.

On 2.43.0:

$ git fast-export -h
...
--[no-]reencode <mode>
                          select handling of commit messages in an alternate encoding
--[no-]mark-tags      label tags with mark ids

On earlier version:

--reencode <mode>   select handling of commit messages in an alternate encoding
--mark-tags      label tags with mark ids

Note: --anonymize-map appears to remain unchanged and doesn't need fixing.

@mattieruth mattieruth changed the title git version 2.43.0 breaks --preserve-commit-encoding git version 2.43.0 breaks git version checks Nov 30, 2023
@jankap
Copy link

jankap commented Dec 6, 2023

I can confirm that on Windows for git 2.43.0 :) Downgrading helped.

@kasperlewau
Copy link

Can confirm. 2.43.0 on Linux.

@TommiPrami
Copy link

How this affects on the usage of filter-repo?

Does it work at all, or is this cosmetic problem?

I have 2.43.0 on windows and it seems to me that filter-repo does nothing, but does not give error message either.

@groboclown
Copy link

groboclown commented Mar 1, 2024

How this affects on the usage of filter-repo?

Does it work at all, or is this cosmetic problem?

I have 2.43.0 on windows and it seems to me that filter-repo does nothing, but does not give error message either.

Certain filter-repo flags trigger checking if the flag is supported by your git version. For example, if you run:

git filter-repo --path-rename "src/:target/" --preserve-commit-encoding

The logic behind checking for whether the flag is supported or not is done by looking at the output of git fast-export -h, which, in later versions of Git, use the text --[no-]reencode, whereas filter-repo looks for the text --reencode.

Git-for-Windows uses a modified version of Git, and may report different flags.

@newren
Copy link
Owner

newren commented Jul 2, 2024

Fixed two weeks ago with 7c5be8e (Support git 2.43, 2023-12-08). Sorry everyone for the long delay from my extended absence from the project. :-(

@newren newren closed this as completed Jul 2, 2024
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 a pull request may close this issue.

6 participants