From 302da9716ab70ead65f7bbdbc917deaf47dfd534 Mon Sep 17 00:00:00 2001 From: ashumeiko Date: Fri, 28 Jun 2024 12:24:26 +0500 Subject: [PATCH] test --- hooks/pre-commit | 4 ++++ setup-hooks.sh | 1 + 2 files changed, 5 insertions(+) create mode 100644 hooks/pre-commit create mode 100644 setup-hooks.sh diff --git a/hooks/pre-commit b/hooks/pre-commit new file mode 100644 index 0000000..90fd226 --- /dev/null +++ b/hooks/pre-commit @@ -0,0 +1,4 @@ +#!/bin/bash +# Ваша команда +echo "Running pre-commit hook" +exit 1 \ No newline at end of file diff --git a/setup-hooks.sh b/setup-hooks.sh new file mode 100644 index 0000000..af2d5f3 --- /dev/null +++ b/setup-hooks.sh @@ -0,0 +1 @@ +ln -s hooks/pre-commit .git/hooks/pre-commit \ No newline at end of file