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 a17255e6b4
commit 3d02663e27

View File

@ -59,6 +59,7 @@ if [ -f "$CHANGELOG_SCRIPT" ]; then
echo -e "${GREEN}Proceeding with push...${NOCOLOR}" echo -e "${GREEN}Proceeding with push...${NOCOLOR}"
# Commit the updated CHANGELOG.md and Makefile # Commit the updated CHANGELOG.md and Makefile
cd "$REPO_ROOT"
echo -e "${CYAN}Staging CHANGELOG.md and Makefile...${NOCOLOR}" echo -e "${CYAN}Staging CHANGELOG.md and Makefile...${NOCOLOR}"
git add CHANGELOG.md Makefile git add CHANGELOG.md Makefile