Re: [PATCH 12/12] t0612: add tests to exercise Git/JGit reftable compatibility
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Apr 8, 2024, 05:24 UTC
- Message-ID
- <ZhN_jwNAcR7UhCc3@tanuki>
- In-Reply-To
- <CAOw_e7b5wDKOcY9hSty+c+z-NWVUgri3h3ScF0qd1Y6cmfsyVA@mail.gmail.com>
On Thu, Apr 04, 2024 at 11:40:29PM +0200, Han-Wen Nienhuys wrote:
Show 6 quoted lines
> On Thu, Apr 4, 2024 at 5:01 PM Patrick Steinhardt <ps@pks.im> wrote: > > +test_expect_success 'JGit repository can be read by CGit' ' > > + test_when_finished "rm -rf repo" && > > + # JGit does not provide a way to create a reftable-enabled repository. > > You can do "jgit init && jgit convert-refstorage --format=reftable"
By the way, the above command does not work as-is as it will end up with a repository that has no "HEAD" reference. I can work around that though by first writing the default branch and then converting the ref storage.
Patrick