From: James Bunton Date: Sun, 3 Apr 2022 12:30:53 +0000 (+1000) Subject: git-no-husky X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/7b1106236af091b700a79ce65299e21e0d3aea97 git-no-husky Husky is an awful tool that automatically adds git hooks. Kill it with fire! --- 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 "$@"