jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit
Saša Živkov d160e8a935 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>
2021-10-15 22:29:28 +02:00
..
api Keep line endings for text files committed with CR/LF on text=auto 2020-08-17 08:52:55 +02:00
attributes Ignore core.eol if core.autocrlf=input 2020-05-22 17:09:23 -04:00
diff DiffFormatter: correctly deal with tracked files in ignored folders 2020-07-17 00:50:24 +02:00
dircache DirCache: support index V4 2020-08-15 12:47:45 +02:00
events Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
fnmatch Remove duplicate copyright statements 2020-01-04 01:34:46 +01:00
gitrepo Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
ignore Remove duplicate copyright statements 2020-01-04 01:34:46 +01:00
indexdiff Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
internal Merge branch 'stable-5.8' into stable-5.9 2021-10-08 00:36:14 +02:00
junit Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
lib Keep line endings for text files committed with CR/LF on text=auto 2020-08-17 08:52:55 +02:00
merge GitlinkMergeTest: fix boxing warnings 2020-09-05 23:28:06 +02:00
nls Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
notes Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
patch Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
revplot Revert "RevWalk: stop mixing lines of history in topo sort" 2020-02-26 14:47:20 -05:00
revwalk Merge branch 'stable-5.7' into stable-5.8 2021-07-29 13:09:39 +02:00
storage/file Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
submodule Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
symlinks Fix remaining javadoc errors raised by doclint 2017-12-21 02:42:14 +01:00
test/resources Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
transport Fix missing peel-part in lsRefsV2 for loose annotated tags 2021-10-15 22:29:28 +02:00
treewalk Update EDL 1.0 license headers to new short SPDX compliant format 2020-01-04 01:10:05 +01:00
util Merge branch 'stable-5.5' into stable-5.6 2020-11-27 01:01:31 +01:00