]> source.dussan.org Git - jgit.git/commit
Ensure FileCommitGraph scans commit-graph file if it already exists 71/200871/5
authorkylezhao <kylezhao@tencent.com>
Mon, 27 Mar 2023 06:48:31 +0000 (14:48 +0800)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 27 Mar 2023 08:51:07 +0000 (10:51 +0200)
commit827849017dc7a6ae269a37727d1e28e18b5aa966
tree2d1bacbd508a6f2a68960beab44457ad0b79dac4
parent67fcf76b4b353eb71d80d4217b43e34a1ff45f30
Ensure FileCommitGraph scans commit-graph file if it already exists

When commit-graph file already exists in the repository, a newly
created FileCommitGraph didn't scan CommitGraph until the file was
modified, resulting in wrong result.

Change-Id: Ic85676f2d3b6a88f3ae28d4065729926b6fb2f23
Signed-off-by: kylezhao <kylezhao@tencent.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/ObjectDirectoryTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileCommitGraph.java