fatal: unable to write new index file

944 views
Skip to first unread message

dun...@gmail.com

unread,
Feb 27, 2014, 11:00:40 AM2/27/14
to tortoise...@googlegroups.com
We are a team of developer who just switched from SVN to Git and we all have the same problem.

From times to times, when we do a "Git Pull" operation, we receive this error message. Thing is, files get pulled anyway and end up being flagged as local modifications which is not the case. We then need to manually revert files that are not modified by the user, then do a pull again. Can be very troublesome when we had a large number of modified files before the operation.

We had the same problem using the official VS2013 Microsoft Git plugin, so we removed it and switched to TortoiseGit but it does the same thing.

dun...@gmail.com

unread,
Feb 27, 2014, 11:05:27 AM2/27/14
to tortoise...@googlegroups.com, dun...@gmail.com
Also note that I tried adding the Git folders in exclusion rules in the antivirus software and removing Icon Overlay as mentionned on a StackOverflow post, but it did not help.

Yue Lin Ho

unread,
Feb 27, 2014, 12:24:12 PM2/27/14
to tortoise...@googlegroups.com, dun...@gmail.com
Hi:

^_^

dun...@gmail.com於 2014年2月28日星期五UTC+8上午12時00分40秒寫道:
We are a team of developer who just switched from SVN to Git and we all have the same problem.

From times to times, when we do a "Git Pull" operation, we receive this error message. Thing is, files get pulled anyway and end up being flagged as local modifications which is not the case. We then need to manually revert files that are not modified by the user, then do a pull again. Can be very troublesome when we had a large number of modified files before the operation.

We had the same problem using the official VS2013 Microsoft Git plugin, so we removed it and switched to TortoiseGit but it does the same thing.

I'm not sure what happened. But, I want to know:

What is the file extension of all problematic files?
Are they all VS2013 relative files?

What is the settings value of AutoCrlf and SafeCrlf?
All of you people use the same settings value?
All of the OS Windows? or some people use Windows and some people use Linux?

Does the hard disk drive have enough space?

dun...@gmail.com於 2014年2月28日星期五UTC+8上午12時05分27秒寫道:
Also note that I tried adding the Git folders in exclusion rules in the antivirus software and removing Icon Overlay as mentionned on a StackOverflow post, but it did not help.

The link of StackOverflow post?

Yue Lin

Yue Lin Ho

unread,
Feb 27, 2014, 12:45:51 PM2/27/14
to tortoise...@googlegroups.com, dun...@gmail.com
The same issue posted on msysGit group as an note:

Could you provide the complete error message?

Yue Lin


dun...@gmail.com

unread,
Feb 27, 2014, 2:29:09 PM2/27/14
to tortoise...@googlegroups.com, dun...@gmail.com

On Thursday, February 27, 2014 12:24:12 PM UTC-5, Yue Lin Ho wrote:
What is the file extension of all problematic files?
Are they all VS2013 relative files?
It's a C# project, there are .cs files, .xaml files, .csproj files and .sln files along with some special cases (ico, snk, config, etc.).
 
What is the settings value of AutoCrlf and SafeCrlf?
Not sure, we let the default values when installing Git.
 
All of you people use the same settings value?
Yes
 
All of the OS Windows? or some people use Windows and some people use Linux?
All Windows

Does the hard disk drive have enough space?
Yes

The link of StackOverflow post?

The same issue posted on msysGit group as an note:
That seems similar, but it's to be noted that my file does not stay locked. I don't need to use a tool like unlocker to get it working again, it's only sporadic during some operations. This link lead me to believe the "Git Source Control Provider" plugin in Visual Studio might be problematic (locking at a certain interval and if I do a tortoisegit operation at the same time the problem occurs) so I'll try disabling it. Still, I had the same problem with the Microsoft plugin before I even have any other tools like tortoisegit installed. Also, even if the file cannot be locked due to multiple process accessing it, Git should NEVER react the way it does (pulling files anyway and not flagging them as pulled, but as local modification).

Could you provide the complete error message?
There nothing more than what is in the title of this post.

Thanks

Yue Lin Ho

unread,
Mar 4, 2014, 4:34:21 AM3/4/14
to tortoise...@googlegroups.com, dun...@gmail.com
Hi:

dun...@gmail.com於 2014年2月28日星期五UTC+8上午3時29分09秒寫道:
Could you please create a new, simple, testing repository which has the same problem and give me that repository? 

Yue Lin


Reply all
Reply to author
Forward
0 new messages