From f5f0c19860d8d2a09c881c542925a521420ed048 Mon Sep 17 00:00:00 2001 From: adionit7 Date: Thu, 15 Jan 2026 14:19:33 +0530 Subject: [PATCH] Remove obsolete pre-commit hook script The legacy pre-commit hook script was scheduled for removal in NetBox v4.3, as noted in the TODO comment within the file. Users should now use the pre-commit tool instead. --- scripts/git-hooks/pre-commit | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 scripts/git-hooks/pre-commit diff --git a/scripts/git-hooks/pre-commit b/scripts/git-hooks/pre-commit deleted file mode 100755 index 90842a6bd..000000000 --- a/scripts/git-hooks/pre-commit +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# TODO: Remove this file in NetBox v4.3 -# This script has been maintained to ease transition to the pre-commit tool. - -exec 1>&2 - -EXIT=0 -RED='\033[0;31m' -YELLOW='\033[0;33m' -NOCOLOR='\033[0m' - -printf "${YELLOW}The pre-commit hook script is obsolete. Please use pre-commit instead:${NOCOLOR}\n" -printf " pip install pre-commit\n" -printf " pre-commit install${NOCOLOR}\n" - -exit 1