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.
This commit is contained in:
anonpenguin23 2025-11-03 07:24:36 +02:00
parent 673a541728
commit 330f1c3780

View File

@ -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