Re: Howto look outside chroot for local git tree?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 2012-03-01 10:07, Damien Churchill wrote:
> On 1 March 2012 00:13, David C. Rankin <drankinatty@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxx>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux