]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: install the git hook (#6425)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Jul 2017 08:41:45 +0000 (04:41 -0400)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Jul 2017 08:41:45 +0000 (10:41 +0200)
commit003c8879679e21ea4b9f76770cc9a23d24759cb0
tree99ea9510c2dfe7a9bed2c160cd018b56ef751fa1
parentc702bd3b6989446048f01815a1e7b35eb0030309
meson: install the git hook (#6425)

This was done autogen.sh previously and was dropped in
72cdb3e783174dcf9223a49f03e3b0e2ca95ddb8. Let's add it back.
The meson configuration step is the only reasonable place.

Note that this only works for the most standard git dirs, e.g.
the hook will not be installed if git worktree is used or if
$GIT_DIR is specified, etc. I think that's OK because most of
the time meson will be run at least once in the original cloned
dir.
meson.build
tools/add-git-hook.sh [new file with mode: 0755]