Skip to content

Commit

Permalink
build: fix fatal error: not in a git directory
Browse files Browse the repository at this point in the history
  • Loading branch information
frugan-dev committed Jun 18, 2024
1 parent 530bad3 commit 6fcbe1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -158,7 +158,11 @@ endif
@$(DOCKER_COMPOSE) exec -u$(WORDPRESS_CONTAINER_USER) $(WORDPRESS_CONTAINER_NAME) sh -c 'ln -sfn /tmp/$(PLUGIN_NAME)-plugin/tests/data/wp-cfm $${WORDPRESS_BASE_DIR:-/bitnami/wordpress}/wp-content/config'

@echo "[wordpress] Initializing git repository ($(MODE))"
@$(DOCKER_COMPOSE) exec -u$(WORDPRESS_CONTAINER_USER) $(WORDPRESS_CONTAINER_NAME) sh -c 'cd /tmp/$(PLUGIN_NAME)-plugin && git init && git config user.email "you@example.com" && git config user.name "Your Name"'
@$(DOCKER_COMPOSE) exec -u$(WORDPRESS_CONTAINER_USER) $(WORDPRESS_CONTAINER_NAME) sh -c 'cd /tmp/$(PLUGIN_NAME)-plugin && { \
git init; \
git config user.email "you@example.com"; \
git config user.name "Your Name"; \
}'

@echo "[wordpress] Installing dependencies ($(MODE))"
@# PHP 7.x and 8.x interpret composer.json's `extra.installer-paths` differently, perhaps due to different versions of Composer.

0 comments on commit 6fcbe1c

Please sign in to comment.