7

When I do some modifications on my local environment like removing files or modifying them and in TortoiseGit I click commit and try to revert the changes I can see and error:

Revert failed: error: unable to stat just-written file : No such file or directory

Has anyone else experienced this? It seems to be some kind of permissions issues but sometimes this can be fixed by restart of the computer. I would like to find more reliable solution.

5
  • Which version of git are you using? Commented Jan 25, 2018 at 15:21
  • Git 2.16.0.windows.2, TortoiseGit 2.5.0.0 Commented Jan 25, 2018 at 15:56
  • 2
    Please update Git for Windows, the 2.16.0.windows.2 contained several bugs regarding stat... Commented Jan 25, 2018 at 15:57
  • @MrTux: Please post that as an answer. Updating to 2.16.1.windows.1 resolved this issue for me, and I can guess that it will resolve it for most people that come here in the future. Commented Jan 29, 2018 at 12:14
  • @fkorsa Done, answer added. Commented Jan 29, 2018 at 14:15

1 Answer 1

12

Git for Windows, the 2.16.0.windows.2 contains several bugs regarding stat (based on faulty fscache implementation; cf. https://github.com/git-for-windows/git/pull/1445).

Git for Windows >= 2.16.1.windows.1 is fixed (cf. release notes https://github.com/git-for-windows/git/releases/tag/v2.16.1.windows.1).

PS: For Git >= 2.16 you need at least TortoiseGit 2.5.7.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.