Re: [PATCH 12/12] t0612: add tests to exercise Git/JGit reftable compatibility
- From
Han-Wen Nienhuys <hanwenn@gmail.com>
- Date
- Apr 6, 2024, 13:03 UTC
- Message-ID
- <CAOw_e7bx=KEeA6sdoDPti6LvxU9Pmr9ZyzyrXfyTmT3DUcHL6w@mail.gmail.com>
- In-Reply-To
- <Zg_HPQFlNazTlDRa@ncase>
On Fri, Apr 5, 2024 at 11:41 AM Patrick Steinhardt <ps@pks.im> wrote:
Show 7 quoted lines
> > > +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" > > Perfect, thanks for this hint!
on a tangent: I wrote this a long time ago, and it does no locking, which probably leads to unpleasant surprises if it is run in parallel with other ref updates. What would be a foolproof way to stop other processes from stomping over the repo while the conversion is ongoing? Maybe create a packed-refs.lock file?
-- Han-Wen Nienhuys - hanwenn@gmail.com - http://www.xs4all.nl/~hanwen