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

Fix dir name tracking in the FileName mode #1521

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

vladbat00
Copy link
Contributor

The PR fixes directory name tracking in the FileName mode. Previously, Change::location would contain a name of a previous non-tree entry, instead of a corresponding directory name.

I'm not sure why existing tests where we compare newly added objects against an empty tree didn't catch this, so I added a new one. For that I had to edit fixtures a bit so that changes touch a tree as well, hence all the commit hash edits.

Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, that's a great catch! And even better that there now is a test for that!

@Byron Byron merged commit 12251eb into GitoxideLabs:main Aug 13, 2024
19 checks passed
@vladbat00 vladbat00 deleted the fix-dir-filename-tracking branch August 18, 2024 17:33
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