Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix pre-commit unset when using make build (#796)

Anas DORBANI7cc58b28a5da
diff --git a/Makefile b/Makefile
index 6569689d2f..c4359b9928 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ build:
@poetry install --without evaluation
@echo "Activating Poetry shell..."
@echo "Installing pre-commit hooks..."
+ @git config --unset-all core.hooksPath || true
@poetry run pre-commit install --config $(PRECOMMIT_CONFIG_PATH)
@echo "Setting up frontend environment..."
@echo "Detect Node.js version..."