mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
fix: clear core.hooksPath before installing pre-commit hooks (#9413)
This commit is contained in:
@@ -46,6 +46,12 @@ else
|
||||
fi
|
||||
|
||||
echo ""
|
||||
# Clear any existing core.hooksPath to avoid pre-commit conflicts
|
||||
if git config --get core.hooksPath >/dev/null 2>&1; then
|
||||
echo -e "${YELLOW}🧹 Clearing existing core.hooksPath configuration...${NC}"
|
||||
git config --unset-all core.hooksPath
|
||||
fi
|
||||
|
||||
echo -e "${YELLOW}🔗 Installing pre-commit hooks...${NC}"
|
||||
poetry run pre-commit install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user