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

Prevent branch switching with GitFileReader #145

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

sstok
Copy link
Member

@sstok sstok commented Apr 20, 2024

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets
License MIT

The GitFileReader uses a temporary directory to clone to and read from, this clone is always singular to reduce too much temp directories.

But when using the GitFileReader it's possible this might cause some side-effects when one file reads from branch A but that file uses the GitFileReader to read from branch B, which would cause a switch (without switching back) and file A not being able to load any other files from branch A (as was expected).

Hopefully this will also fix a rather hard to find bug where configuration loading fails randomly.

The GitFileReader uses a temporary directory to clone to and read from,
this clone is always singular to reduce too much temp directories.

But when using the GitFileReader it's possible this might cause some side-effects
when one file reads from branch A but that file uses the GitFileReader to read from branch B,
which would cause a switch (without switching back) and file A not being able to load any other
files from branch A (as was expected).

Hopefully this will also fix a rather hard to find bug where configuration loading fails randomly
@sstok sstok added the Bug label Apr 20, 2024
@sstok sstok merged commit e7b926e into hupkit:1.x Apr 20, 2024
5 checks passed
@sstok sstok deleted the bug/git-filereader-branch-switch branch April 20, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant