[arch-general] Howto look outside chroot for local git tree?

Mantas M. grawity at gmail.com
Thu Mar 1 09:04:52 EST 2012


On 2012-03-01 10:07, Damien Churchill wrote:
> On 1 March 2012 00:13, David C. Rankin <drankinatty at suddenlinkmail.com> wrote:
>>  Possible? Or would the solution be to set the local copy of the git tree up
>> inside a apache (or whatever it takes) and pretend to run a local copy? Even
>> then, there would be no way to check for its existence from inside the chroot?
>>
> 
> You could mount --bind the location of your local git repositories to
> a point inside your chroot, that's probably the quickest and simplest
> way of doing it, although it offers no protection of your git
> repositories from being wiped out from within the chroot.

Or you could run `git daemon` on the outside, then change PKGBUILD to
use <git://localhost/path/to/repo/> for read-only access.

The check would be simple: 1) try cloning directly to $srcdir; 2) if it
fails, clone upstream instead.

-- 
Mantas Mikulėnas <grawity at gmail.com>


More information about the arch-general mailing list