summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-03-14 10:29:55 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-03-15 17:27:49 +0100
commit6233a769327d8a1e7247ce741569752ffcf09144 (patch)
tree6d2068839e3f7a7dc0b20a3fa50faebddf6e0dbd /meson.build
parentdocs: Update HACKING guide with recommended git config (diff)
downloadsystemd-6233a769327d8a1e7247ce741569752ffcf09144.tar.xz
systemd-6233a769327d8a1e7247ce741569752ffcf09144.zip
meson: Rename add-git-hook.sh to git-setup.sh and configure git in it
Let's automatically apply the recommended git config with meson.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 078ba822ea..0e5f403484 100644
--- a/meson.build
+++ b/meson.build
@@ -66,9 +66,9 @@ summary({'build mode' : get_option('mode')})
#####################################################################
# Try to install the git pre-commit hook
-add_git_hook_sh = find_program('tools/add-git-hook.sh', required : false)
-if add_git_hook_sh.found()
- git_hook = run_command(add_git_hook_sh, check : false)
+git_setup_sh = find_program('tools/git-setup.sh', required : false)
+if git_setup_sh.found()
+ git_hook = run_command(git_setup_sh, check : false)
if git_hook.returncode() == 0
message(git_hook.stdout().strip())
endif