mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-12-13 00:58:50 +00:00
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:
parent
a17255e6b4
commit
3d02663e27
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user