Sublime Forum

All files in repo showing as staged — repo has alternate pointing at bare clone

#1

I’m seeing the same symptom as in Sublime Merge showing every file as staged when I installed Sublime Merge on a second machine. The repo set up is very similar, and the huge number of files listed as staged makes the app impossible to use (hangs for ~90 seconds trying to do anything, as it’s trying to show a ridiculous diff).

I can’t see any relevant difference between config on the working machine compared to the “everything is staged” machine. The repos are at the same paths, same version of Sublime Merge, same git configs, more or less…

0 Likes

#2

The other difference: The “problematic” repo used alternates, pointing at another local bare repository. Removing that (git repack -a -d && rm .git/objects/info/alternates) appears to have worked around the issue. So there’s a strong indication there’s a Sublime Merge bug if the repo has alternates (or an alternate that’s a bare repo?)

0 Likes