From 3d02663e2771f432ef9757d8fd64a9a61ebe7f5b Mon Sep 17 00:00:00 2001 From: anonpenguin23 Date: Mon, 3 Nov 2025 07:24:36 +0200 Subject: [PATCH] fix: ensure correct repository context in pre-push hook - Updated the pre-push hook to change the directory to the repository root before staging CHANGELOG.md and Makefile, ensuring the commands execute in the correct context. --- .githooks/pre-push | 1 + 1 file changed, 1 insertion(+) diff --git a/.githooks/pre-push b/.githooks/pre-push index 713770d..a19b525 100644 --- a/.githooks/pre-push +++ b/.githooks/pre-push @@ -59,6 +59,7 @@ if [ -f "$CHANGELOG_SCRIPT" ]; then echo -e "${GREEN}Proceeding with push...${NOCOLOR}" # Commit the updated CHANGELOG.md and Makefile + cd "$REPO_ROOT" echo -e "${CYAN}Staging CHANGELOG.md and Makefile...${NOCOLOR}" git add CHANGELOG.md Makefile