Search code examples
gitbitbucket

'loose object file': bad file descriptor while doing git pull


I am using BitBucket. I am trying to pull master branch,using git pull origin master but I am getting errors:

enter image description here

I see this was asked as similar issue on SO, so I tried following methods, but it didnt worked.

git config --global pack.packSizeLimit 50m
git config --global pack.windowMemory 50m
git config --global core.compression 9

Another method I tried

2.    git gc
  1. I tried to change buffer limit also it didnot worked.

    git config --global http.postBuffer 524288000
    

Why is this issue coming? Currently I am at master branch.


Solution

  • As per comments, you can run:

    git config core.fsyncObjectFiles false
    

    to force Git to stop calling fsync for objects in this particular repository database. It seems odd that this should make any difference though, as the source code for Git has false as the default; something in your particular Git installation must have changed this to true. It may be worth investigating what changed it to true and why. The code to call fsync at all was new in Git 1.6.0 but the default has been false ever since it was introduced in commit aafe9fbaf4f1d1f27a6f6e3eb3e246fff81240ef. Whoever set it to true on your system must have had some reason for doing that.