-
Notifications
You must be signed in to change notification settings - Fork 2
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
BlockServer: Fails with untracked directories #2624
Comments
Do you get the same problem if you update GitPython ? |
My system is in a bit of a state at the moment, but I did have untracked directories in my settings area when I was testing, but likely had updated GitPython at that point. |
I haven't had a chance to try it. My release is equivalent to 4.0.0. If an updated version of GitPython is needed, that might solve this issue. If that's the case, then I'm currently doing #2548 which would sort it. Refactoring would still be good at some point, but fixing the failure is the first priority of this ticket. |
Have a try at creating a test which includes creating a real git repository with items added to it (If possible a fake one with credentials to access) |
As suggested, the bug does not occur with the latest version of Python Git. This needs fully testing with the creation of suitable tests, if possible, as part of this ticket |
Owing to changes to the BlockServer as part of #2574, I now get frequent errors of the form:
From investigation, this appears to arise because of untracked files in my git repository.
This appears to be having significant knock on effects in the GUI. It has trouble setting the current configuration at startup and requires a reload of the required configuration.
This change was not included in release 4.0.0 but must be fixed prior to the next release to avoid serious issues.
I "fixed" this locally by chaning line 272 in git_version_control.py to:
However, this is just another in a long line of issues with our use of git and the file watcher. As part of this ticket we should discuss and map all of the use cases that the system should meet.
That's just a subset of questions that need clear answers with tests and clear handling mechanisms within the code. The current system is ok but I've seen this error along with the file watcher and version control getting into an infinite loop as part of the current master version.
The text was updated successfully, but these errors were encountered: