Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] TransportLocal expects that local repository is file based

On Thu, Jul 21, 2016 at 1:06 AM, Thomas Meyer <thomas@xxxxxxxx> wrote:
> Hi,
>
> The TransportLocal.open() method assumes that the local repository is a file based one. But according to the documentation in Repository.getFS() is allowed to return null.
>
> So with the current implementation it is not possible to clone from a local file based repository into a none file based repository using TransportLocal.
> I didn't checked if TransportBundleFile works correctly in this setup.
>
> Bug or feature?

Seems like a bug. TransportLocal and TransportBundleFile predates
non-file repositories by many years. They probably just didn't get
updated to remove that assumption.


Back to the top