#1010173 git: "git pull" fails with "fatal: commit-graph requires overflow generation data but has none"

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Norbert Kiesel
Date:
2022-05-21 10:39:02 UTC
Severity:
important
#1010173#5
Date:
2022-04-25 17:46:07 UTC
From:
To:
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.

#1010173#10
Date:
2022-04-25 17:55:23 UTC
From:
To:
After running `git config core.commitGraph false`, `git pull` works again.
Thus, priority for this bug could be reduced.

#1010173#15
Date:
2022-05-21 10:35:49 UTC
From:
To:
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