Open nagylzs opened 4 months ago
Did you have git maintenance
running at some point before? If so, I guess it's related to #1094.
Yes, git maintenance was enabled on this repo. But I'm not sure if it was running when I saw the problem.
I believe I ran into the same issue.
What fixed it for me was at some point I opened the repo with Git GUI from the Git for WIndows installations and it popped up a message saying there were many 'loose objects' and asking me to allow it to 'compress the database' or something which I believe is essentially saying it want's to run git gc
. I clicked OK and Git GUI did it's thing. On returning to Sublime Merge the issue was gone.
Some more debug info below:
Version info
Debug Information
=== Git Version Information ===
Using Git: C:\Program Files\Sublime Merge\Git\cmd\git.exe (bundled)
git version 2.39.1.windows.1
=== Git Config Information ===
branch.dev.merge=refs/heads/dev
branch.dev.remote=origin
color.interactive=true
color.ui=auto
core.autocrlf=false
core.bare=false
core.filemode=false
core.fscache=true
core.ignorecase=true
core.logallrefupdates=true
core.repositoryformatversion=0
core.symlinks=false
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
filter.lfs.smudge=git-lfs smudge -- %f
gui.geometry=1305x725+590+249 305 265
gui.recentrepo=C:/repos/REDACTED
gui.wmstate=normal
help.format=html
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
include.path=C:/Program Files/Git/etc/gitconfig
init.defaultbranch=main
lfs.https://github.com/REDACTED.git/info/lfs.access=basic
lfs.repositoryformatversion=0
maintenance.auto=false
maintenance.repo=C:/repos/es-main-1
maintenance.strategy=incremental
pack.packsizelimit=2g
pull.rebase=false
rebase.autosquash=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=https://github.com/REDACTED.git
submodule.active=.
submodule.assets.url=https://github.com/REDACTED.git
=== Our Config Information ===
Git Config Path Information
Using config path: /C/ProgramData/Git/config
Using config path: /C/Program Files/Sublime Merge/Git/etc/gitconfig
Using config path: /C/Users/Thomas Hope/.config/git/config
Using config path: /C/Users/Thomas Hope/.gitconfig
Using config path: /C/repos/REDACTED/.git/config
Our config output is identical to the Git config output
I as well had maintenance turned on and I had same issue with minor differences: it was not whole repository, but only around 500 files.
Simply running git gc
didn't help because for me it was errored with messages unable to add cruft objects
and failed to run repack
. After Googling these errors for a while, I stumbled upon this StackOverflow answer: they suggested to run git gc --aggressive --prune=now
and for me it did help.
It happened again today. git gc --aggressive --prune=now
fixed it.
Version info
Description
A description of what the bug is.
Steps to reproduce
I have no idea how to reproduce, but I can show you some details. If I open the repo's directory and use command line git to show status then I see this:
If I open the same repo in sublime merge, then I see this:
Visible problems:
What finally helped is this:
Debug Information