emacs-devel
[Top][All Lists]
Advanced

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

Re: make bootstrap fails: cp: .git/hooks/applypatch-msg.sample: No such


From: Paul Eggert
Subject: Re: make bootstrap fails: cp: .git/hooks/applypatch-msg.sample: No such file or directory
Date: Mon, 26 Jan 2015 11:31:51 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 01/26/2015 08:48 AM, Sam Steingold wrote:
Running 'autoreconf -fi -I m4' ...
Installing git hooks...
cp: .git/hooks/applypatch-msg.sample: No such file or directory

My guess is that the repository was created by an older version of Git. Git versions before 1.6.0 didn't create .sample files for hooks.

In previous discussion about this, we thought it OK to require Git version 1.7.1 (April 2010) or later; see the (admittedly short) thread at <http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg00037.html>. If this needs to be revisited, now's as good a time as any to do that.

what is this hook?
why do I need it?
where do I get it?
why is it not explained in INSTALL.REPO?

It's a hook for when you apply patches from other developers. The simplest thing to solve just this problem, assuming you're running a recent-enough Git, is to reclone the repository from scratch. You should be able to patch an existing repository built with an older Git by running 'chmod a+x .git/hooks/applypatch-msg .git/hooks/pre-applypatch; cp .git/hooks/applypatch-msg .git/hooks/applypatch-msg.sample; cp .git/hooks/pre-applypatch .git/hooks/pre-applypatch.sample' (though I haven't tested this).

I installed the attached patch to INSTALL.REPO to try to help clarify the situation a bit.

Attachment: 0001-INSTALL.REPO-Mention-minimum-Git-version.patch
Description: Text Data


reply via email to

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