# Some hooks turned on by default in FreeBSD 4

2 messages from 2008-10-27 to 2008-10-27. Participants: Robert Boone, Pieter de Bie.
Thread: https://gitlist.dev/t/16064

## Robert Boone, 2008-10-27 19:14

Subject: Some hooks turned on by default in FreeBSD 4
Message-ID: <435624390810271214s16b964cbo131772ea4a760ef7@mail.gmail.com>
URL: https://gitlist.dev/e/435624390810271214s16b964cbo131772ea4a760ef7%40mail.gmail.com

```
This was a fresh install from the git repository using the master branch
git version: 1.6.0.3.523.g304d0


Is this something that can be fixed with a recompile and different arguments?


[root@user /usr/local/cpanel.git]# git commit
fatal: exec .git/hooks/pre-commit failed.
[root@user /usr/local/cpanel.git]# ls -l .git/hooks/
total 52
-rw-r--r--  1 root  wheel   441 Oct 27 10:14 applypatch-msg
-rwxr-xr-x  1 root  wheel   452 Oct 27 10:14 applypatch-msg.sample
-rw-r--r--  1 root  wheel   887 Oct 27 10:14 commit-msg
-rwxr-xr-x  1 root  wheel   894 Oct 27 10:14 commit-msg.sample
-rw-r--r--  1 root  wheel   152 Oct 27 10:14 post-commit
-rwxr-xr-x  1 root  wheel   160 Oct 27 10:14 post-commit.sample
-rw-r--r--  1 root  wheel   510 Oct 27 10:14 post-receive
-rwxr-xr-x  1 root  wheel   553 Oct 27 10:14 post-receive.sample
-rw-r--r--  1 root  wheel   207 Oct 27 10:14 post-update
-rwxr-xr-x  1 root  wheel   189 Oct 27 10:14 post-update.sample
-rw-r--r--  1 root  wheel   387 Oct 27 10:14 pre-applypatch
-rwxr-xr-x  1 root  wheel   398 Oct 27 10:14 pre-applypatch.sample
-rw-r--r--  1 root  wheel  1706 Oct 27 10:14 pre-commit
-rwxr-xr-x  1 root  wheel   519 Oct 27 10:14 pre-commit.sample
-rw-r--r--  1 root  wheel  4262 Oct 27 10:14 pre-rebase
-rwxr-xr-x  1 root  wheel  4942 Oct 27 10:14 pre-rebase.sample
-rw-r--r--  1 root  wheel  1196 Oct 27 10:14 prepare-commit-msg
-rwxr-xr-x  1 root  wheel  1219 Oct 27 10:14 prepare-commit-msg.sample
-rw-r--r--  1 root  wheel  2910 Oct 27 10:14 update
-rwxr-xr-x  1 root  wheel  2892 Oct 27 10:14 update.sample

```

## Pieter de Bie, 2008-10-27 19:23

Subject: Re: Some hooks turned on by default in FreeBSD 4
Message-ID: <A770E0EA-EE98-47CA-9710-48DA6314AFED@ai.rug.nl>
URL: https://gitlist.dev/e/A770E0EA-EE98-47CA-9710-48DA6314AFED%40ai.rug.nl
In-Reply-To: <435624390810271214s16b964cbo131772ea4a760ef7@mail.gmail.com>

```

On 27 okt 2008, at 20:14, Robert Boone wrote:

> [root@user /usr/local/cpanel.git]# ls -l .git/hooks/
> total 52
> -rw-r--r--  1 root  wheel   441 Oct 27 10:14 applypatch-msg
> -rwxr-xr-x  1 root  wheel   452 Oct 27 10:14 applypatch-msg.sample

You probably installed the new git over an older one? The old files in  
the templates weren't deleted, so now you have both the old version  
without .sample and the new ones in your template folder.

```
