We started using Sourcetree on Mac for our Git repositories at work and ever since then I will frequently get a corrupt loose object (e.g. http://stackoverflow.com/questions/4254389/git-corrupt-loose-object). This has occurred 4-5 times in the last month.
I believe this problem occurs when you interrupt a git operation before it finishes. However, when I actively use Sourcetree, I never interrupt any of the operations and I always wait for everything to finish. Has anyone else ever experienced this issue? Is Sourcetree doing git operations in the background that I am accidentally interrupting? I do move around a lot and switch/lose internet a lot.
Also, I know how to fix the issue once it happens by re-cloning the repo. I don't need help with that. What I need is a solution to prevent it from occurring in the first place since it's very disruptive to our work.
I disabled the Sourcetree Preference to "Check default remotes for updates every X minutes" and this problem has never occurred after a month of constant development. This is enough to make me think my original hypothesis about interrupting sourcetree git commands in the background was correct.
The downside of this is that you will not automatically see updates to pull. I got into the habit of constantly pressing the hotkey for "Refresh Remote Status" every time I switch to Sourcetree and it gets the job done.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.