emacs-devel
[Top][All Lists]
Advanced

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

Re: Why does make run git?


From: Andreas Schwab
Subject: Re: Why does make run git?
Date: Wed, 16 Aug 2017 14:49:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

On Aug 16 2017, Andy Moreton <address@hidden> wrote:

> On Tue 15 Aug 2017, Paul Eggert wrote:
>
>> Ted Zlatanov wrote:
>>
>>> I think CONTRIBUTE should mention, right after saying to run autogen.sh,
>>> that the above requires Git to be installed.
>>
>> autogen.sh is not supposed to require Git, so let's fix autogen.sh instead.
>>
>>
>>> 'build-aux/git-hooks/commit-msg' -> '.git/hooks/commit-msg'
>>> cp: cannot create regular file '.git/hooks/commit-msg': No such file or 
>>> directory
>>> ERROR: Job failed: exit code 1
>>> #+end_src
>>>
>>> So it looks like it assumes that `.git/hooks' exists. I don't know why
>>> that's not true in the GitLab checkout.
>>
>> I don't know why either. I wonder what other compatibility mines remain
>> unexploded in the GitLab field? Anyway, I installed the attached, which 
>> should
>> work around this particular problem without having to complicate the
>> configuration instructions.
>
> Is it possible that gitlab is using git worktrees, in which case .git in
> the worktree is a regular file and not a directory ?

.git must already exist as a directory, otherwise '.git/config' ->
'.git/config.~1~' wouldn't have worked.

Andreas.

-- 
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

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