lmi
[Top][All Lists]
Advanced

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

Re: [lmi] Symlink .git/hooks


From: Greg Chicares
Subject: Re: [lmi] Symlink .git/hooks
Date: Tue, 8 Nov 2016 21:58:21 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.3.0

On 2016-11-05 16:48, Vadim Zeitlin wrote:
> On Sat, 5 Nov 2016 15:09:35 +0000 Greg Chicares <address@hidden> wrote:
> 
> GC> Wait...I have a new hypothesis: the symlink target is an absolute
> GC> path, in a chroot, so it's actually relative to the chroot's root:
> 
>  Yes, this is definitely the explanation for what you're seeing

Okay, then the cut-and-paste recipe to activate the hooks I'm about to
add is to do the following in every directory that contains a non-bare
git repository (i.e., every directory with a /.git subdirectory):

  ln --symbolic --force --no-dereference ../hooks .git

(The removed '.sample' files do nothing anyway).

For the layout that I believe both Kim and I are using, that means:

  cd /opt/lmi/src/lmi
  ln --symbolic --force --no-dereference ../hooks .git

  cd /opt/lmi/proprietary
  ln --symbolic --force --no-dereference ../hooks .git




reply via email to

[Prev in Thread] Current Thread [Next in Thread]