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

Sort Git Tree Entries Correctly #2838

Merged
merged 1 commit into from
Feb 28, 2022
Merged

Sort Git Tree Entries Correctly #2838

merged 1 commit into from
Feb 28, 2022

Conversation

martinmaly
Copy link
Contributor

The Git tree entry sort oder is very particular. Tree entries are sorted
as if tree entries (directories) had '/' appended to them. Git seems to
rely on this order, causing errors if it is not followed.

The Git tree entry sort oder is very particular. Tree entries are sorted
as if tree entries (directories) had '/' appended to them. Git seems to
rely on this order, causing errors if it is not followed.
@martinmaly martinmaly requested a review from justinsb February 26, 2022 01:21
@justinsb
Copy link
Contributor

lgtm - this rings a bell! We should also check if there's a helper in go-git, maybe?

@martinmaly
Copy link
Contributor Author

I checked but the code is internal utility.

@martinmaly martinmaly merged commit 7fba141 into kptdev:main Feb 28, 2022
@martinmaly martinmaly deleted the sort branch February 28, 2022 17:16
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.

2 participants