From 7b1106236af091b700a79ce65299e21e0d3aea97 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sun, 3 Apr 2022 22:30:53 +1000 Subject: [PATCH] git-no-husky Husky is an awful tool that automatically adds git hooks. Kill it with fire! --- hacks/git-no-husky | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 hacks/git-no-husky diff --git a/hacks/git-no-husky b/hacks/git-no-husky new file mode 100755 index 0000000..7ed9144 --- /dev/null +++ b/hacks/git-no-husky @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ "$1" = "config" ] && [ -z "${GIT_CONFIG_ENABLE}" ] && ! [[ "$2" =~ --get ]]; then + echo "Ignoring git $*" + exit 0 +fi + +/usr/bin/git "$@" -- 2.39.2