aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.6.tpd
diff options
context:
space:
mode:
authorSaša Živkov <sasa.zivkov@sap.com>2021-10-15 10:13:53 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2021-10-15 22:29:28 +0200
commitd160e8a9354c1acdb6f60d743581e99cee520077 (patch)
tree24a5165cecf09853f5831fa97552c2aea582f75e /org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.6.tpd
parent5a7a5d5ae92ba23a8c3aabaf5f875ed2f6421ae6 (diff)
downloadjgit-d160e8a9354c1acdb6f60d743581e99cee520077.tar.gz
jgit-d160e8a9354c1acdb6f60d743581e99cee520077.zip
Fix missing peel-part in lsRefsV2 for loose annotated tags
We observed the following issue: $ git tag -a v1.0 -m v1.0 $ git push origin tag v1.0 $ git ls-remote origin v1.0^{} ... empty result ... On the server (Gerrit) side run git-gc to pack the refs: $ git gc Repeat the ls-remote from the client and the result is correct: $ git ls-remote origin v1.0^{} 7ad85c810de3ae922903d4bdd17c53cd627260ba refs/tags/v1.0^{} Unfortunately, the existing UploadPackTest didn't reveal this issue although it provided the test case needed to do so: testV2LsRefsPeel. This is because The UploadPackTest uses InMemoryRepository which internally uses Dfs* implementations. The issue is only reproducible when using the FileRepository. It is a non-trivial task to refactor the UploadPackTest to work against both InMemoryRepository and FileRepository and this change is not trying to do that. This change creates a new test: UploadPackLsRefsFileRepositoryTest and copies the necesssary code from the UploadPackTest. Change-Id: Icfc7d0ca63f1524bafe24c9626ce12ea72aa3718 Signed-off-by: Saša Živkov <sasa.zivkov@sap.com>
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.6.tpd')
0 files changed, 0 insertions, 0 deletions