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

Fixed inconsistent hash_overwrite after copy_append and join_right #97

Merged
merged 2 commits into from
Jul 16, 2022

Conversation

critias
Copy link
Contributor

@critias critias commented Jul 16, 2022

Addressing issue #96

@critias critias force-pushed the fix_copy_append_hash_overwrite branch from 197ebb4 to fcd3126 Compare July 16, 2022 11:10
Comment on lines 282 to +286
new = self.copy()
new.path = os.path.join(new.path, other)
if self.hash_overwrite:
c, o = self.hash_overwrite
new.hash_overwrite = (c, f"{o}/{other}")
new.path = f"{new.path}/{other}"
Copy link
Member

Choose a reason for hiding this comment

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

join_right could also simply be implemented as:

return self.copy_append("/" + other)

@critias critias merged commit 800f3e0 into master Jul 16, 2022
@critias critias deleted the fix_copy_append_hash_overwrite branch July 16, 2022 18:14
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