From 2084e139d4be644588ce910fed9d02dc53831734 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 21 Jun 2022 11:39:49 +0200 Subject: [PATCH] test: Move git hook scripts to tools/ They fit better there, tools/ already has the git-hook-pre-rebase hook, and this cleans up the last bit in test/ which is not actually related to running integration tests. --- HACKING.md | 4 ++-- {test => tools}/git-hook-post-commit | 0 {test => tools}/git-hook-pre-push | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename {test => tools}/git-hook-post-commit (100%) rename {test => tools}/git-hook-pre-push (100%) diff --git a/HACKING.md b/HACKING.md index a4e944cccec..ffa8c90ec66 100644 --- a/HACKING.md +++ b/HACKING.md @@ -104,13 +104,13 @@ There are also static code and syntax checks which you should run often: It is highly recommended to set up a git pre-push hook, to avoid pushing PRs that will fail on trivial errors: - $ ln -s ../../test/git-hook-pre-push .git/hooks/pre-push + $ ln -s ../../tools/git-hook-pre-push .git/hooks/pre-push This calls `test/static-code` for each commit you're trying to push. You can also set up a post-commit hook to do the same, after each commit: - $ ln -s ../../test/git-hook-post-commit .git/hooks/post-commit + $ ln -s ../../tools/git-hook-post-commit .git/hooks/post-commit We also have a hook to ameliorate one of the more annoying drawbacks of using git submodules: diff --git a/test/git-hook-post-commit b/tools/git-hook-post-commit similarity index 100% rename from test/git-hook-post-commit rename to tools/git-hook-post-commit diff --git a/test/git-hook-pre-push b/tools/git-hook-pre-push similarity index 100% rename from test/git-hook-pre-push rename to tools/git-hook-pre-push