Empty commits info. 1970-01-01. Incorrect .git/objects/info/commit-graph processing
What steps will reproduce the problem?
- unknown. just a regular commit. read below.
What is the expected output? What do you see instead?
- Expected: Related commit info: text, date, author, ...
- Instead of: empty fields with 1970-01-01 date
What version of TortoiseGit and Git are you using? On what operating system?
Windows 10. Latest TortoiseGit-2.9. Git 220.127.116.11
Please provide any additional information below.
I have the following problem in TortoiseGit with my local repo.
Just after some regular commit:
Sha-1 ok, but no author, no commit info, the date points to 0, ie. 1970-01-01 ...
While other programs like vscode git graph works fine.
Other repos also work fine via affected TortoiseGit, but not this. No problem when new clone of affected repo.
I also tried to reset all data in
saved data. and to restart my laptop. No result. Only for one local repo.
Known place where bug and Solution
The problem exaclty with
.git/objects/info/commit-graph (51052 bytes)
Because it was fixed only after this command:
git commit-graph write --split
.git\objects\info │ └───commit-graphs commit-graph-chain (82 bytes) graph-117c78b4f73b25d5714852e4febbbf93a52f0716.graph (51,052 bytes) graph-ad3ad2c1e7711166d7f39aa7b28e387b62c6be4f.graph (4,400 bytes)
Without splitting, the following also does not help:
rm .git/objects/info/commit-graph git gc git commit-graph write
As I also mentioned above, 2.7 works for both cases. Well, something is there. o_O
Please fix it.