-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Request 'log' failed from scm amend #5435
Comments
@kittaakos I tried the above steps in ak/scm_rework and I have not been able to get the error you saw in the log. I will try more tomorrow. I did however see the following. I'll let you know what I find when I investigate tomorrow. root ERROR Error occurred while synchronizing the status of the repository. file:///c%3A/Users/Nigel/workspace-theia/txr-java GitError: fatal: .git/index: index file open failed: Permission denied
root INFO Started watching the git repository: file:///c%3A/Users/Nigel/workspace-theia/txr-java root ERROR Error occurred while synchronizing the status of the repository. file:///c%3A/Users/Nigel/workspace-theia/txr-java GitError: fatal: your current branch appears to be broken
|
Please check your Git version, it should be >=2.11. |
Steps to reproduce the issue:
|
Related #5451? |
Almost certainly that is not the same problem. The log output is different and the steps to reproduce are different, though they do both fail in the git log command. |
It was 2.14.0.windows.2 on the machine I used. I have now upgraded to 2.22.0.windows.1 and I have not seen the problem since.
Those steps give me a different error. We are not coping well with an empty Git repository. The log function in dugite-git.ts will always fail because there is no HEAD. I suspect modifying that log function, to always return an empty array for empty repositories, will fix the issue. We just need to check that callers cope well when getting back an empty array. I'll try it out and maybe put in a PR. |
What kind of errors did you get?
Yes. |
root ERROR The command and also with -n 1 or -n 2 when it is called from ScmAmendComponent. |
Ahh, I added the frontend error to this issue while you were referring to the backend one. Makes sense. :) Do you have time to add the guard against the |
I'm making the change. Should have it ready today. |
see #5416 (comment)
from @kitakkos also
cc @westbury
The text was updated successfully, but these errors were encountered: