Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

fatal: unable to write new index file

My Company (Web Development) has decided to use Git. All repositories: employee (local repo) and remote repositories (bare repo) are stored on the central development server (OS X 10.9.1, Mac mini middle 2011). Developer connect to the development server from their iMacs over local network (OS X 10.7.5, 10.8.1 and so on, only Macs) and write the source code there. A Git client on Mac called Sourcetree should do the whole work. But after a few commits or some other git operations I get sooner or later following message:

fatal: unable to write new index file

After the message GIT can track the changes in the project, but I can't save anything to git. Even by using terminal or anotrher GIT-GUIs (I have tried Coda, GitHub) I get the same error message.

If the git client and the repository are stored on the same mac, everything works fine (tried on the development server and two iMacs). The problem occurs only if the git client has to connect to the repository over local network (AFP).

If I start the Git client on the development server and save some changes to the „damaged“ repository, everything works again. Also over local network. But if i work then in the repository on the development server with my local git client from my iMac over local network, I get sooner or later (mostly after a few adds or commits) the same error message.

I connect or login on server allways as the same user. Also Git client connects as the same user.

I suspect, that the reason is AFP.

I have enouth free space on the central development server. And have enouth file permissions, at least initially. These topics were not helpful for me:

What could I do?

2 answers

1 accepted

0 votes
Answer accepted

The easiest, most robust solution will be to let your developers have the local repositories on their machines. The entire point of creating a DVCS like Git is so that the user can interact with their repository regardless of network connectivity.

If you want to require the network connectivity (maybe you are concerned developers will give away your proprietary code if they take their macbooks home, I can't think of any other reason to require this), then a DVCS isn't the right choice for you. Use SVN instead.

If you want to make sure developers' code is backed up, either task them with committing/pushing often, or download/purchase some backup software.

Please feel free to explain why hosting "local" repositories on network storage is desirable/required. If you've got a good reason, people will be more likely to try to help you find solutions.

@Seth FossThank you for your prompt answer. Is it realy so, that GIT has problems with AFP/ shared folder? If it is so, I'll make the lokal solution you recommended. It was my second plan.

The reason for hosting "local" repositories on network storage was, that the web development testing server is allready configured for development and test of source code and backup. Also each developer could give a Link to other emploees in order to test the system.

If you can handle your GIT-Repository only localy, you should to configure/activate development environment, backup and share every Mac for other.

If it doesnt work with the network storage, I'll backup every mac and server and separatelly copy and backup local GIT-Repositoris.

Best regards

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,910 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you