Sublime Forum

Git status file and folder colors can be wrong (fix)

#1

I’m not sure why or how, but from time to time, some files and folders in the sidebar will be color-coded incorrectly to show git status. In my case, they are shown in green when they are not new to the repo.

The fix I have found is to run git repack and then git gc in a terminal pointed at the root of the repo.

0 Likes

#2

Which ST version are you running? Were all files marked as new/green? There used to be a bug that got fixed in the latest dev version.

0 Likes

#3

Build 4200. Rinning git repack and then git gc might have fixed the problem. But now real git status changes aren’t reflected in color.

Maybe I’ll find and download the latest.

0 Likes

#4

4200 is the latest “stable”, 4205 the current “dev” (https://www.sublimetext.com/dev ; license required for usage).
I hat the same issue in a specific repo where running git gc (didn’t try repack iirc) helped reproducible. That got fixed.

0 Likes

#5

Ah, I see, you opened the github issue I wanted to reference here (https://github.com/sublimehq/sublime_text/issues/6841)

0 Likes

#6

Thanks. I’ll give the dev build a try.

0 Likes