threads / discuss / 30038

Git commit error: fatal: Repository has been updated, but unable to write new_index file.

Subject: Git commit error: fatal: Repository has been updated, but unable to write new_index file.

## tl;dr

One message between Mar 23, 2012 and Mar 23, 2012.

replies: 0people: 1as markdown or json

Kirill Likhodedov· Mar 23, 2012, 15:17 UTC · lore
Hello,
I'm developing a Git integration with an IDE. Several users of the program report the following error which was returned by Git during commit:

fatal: Repository has been updated, but unable to write new_index file. Check that disk is not full or quota is not exceeded, and then "git reset HEAD" to recover.

Here is the command which IDE executes to make a commit: 
# git commit --only -F <message file> -- <several files chosen to commit>

The interesting thing is that commit was actually successful, i.e. all files are committed, git status reports correctly, no other mistakes were noticed by users. Here is the bugreport with some more details: http://youtrack.jetbrains.com/issue/IDEA-82108 One of the users says, that the situation happens quite often.

Users say that the thing has never happened with them while they were using Tortoise Git, so I'm pretty sure, that it is my bug caused my some misusage of Git (although I asked users to perform more experiments).
Unfortunately, I didn't find any information about the possible cause of this error.
Could you please help me to figure out why it can happen? What situation can lead to this error?
Thanks a lot.

---------------------------------- Kirill Likhodedov JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"

← back to recent threads