Dear Maintainer, after upgrading Git, I cannot pull anymore because I always get the above erro message. I run a daily "git show-ref -s | git commit-graph write --stdin-commits --changed-path --no-progress" in that repo. For repos where I do not run this command, `git pull` continues to work. I tried to "shrink" the commit graph using `git commit-graph write --stdin-commits --changed-path --no-progress < /dev/null` but while this did not produce any error, it also did not fix my problem.
After running `git config core.commitGraph false`, `git pull` works again. Thus, priority for this bug could be reduced.
Hi,
for me, removing the commit graph cache with
rm -r .git/objects/info/commit-graph{,s}
and regenerating with
git commit-graph write
worked as well.
See here
https://lore.kernel.org/git/f50e74f0-9ffa-f4f2-4663-269801495ed3@github.com/
for confirmation that it's indeed just a cache, and upstream noting that
git should be fixed to handle a corrupt cache better than dying.
HTH,
Jan