set git safe.directory to workspace to get commit hash during make
This commit is contained in:
parent
2d0db7d73a
commit
4788136b10
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ NORM=$(shell tput sgr0)
|
||||||
ifeq ($(CONTAINER_NAME),)
|
ifeq ($(CONTAINER_NAME),)
|
||||||
shell: .build
|
shell: .build
|
||||||
$(info $(BOLD)Starting $(TOOLCHAIN_NAME)...$(NORM))
|
$(info $(BOLD)Starting $(TOOLCHAIN_NAME)...$(NORM))
|
||||||
docker run -it --rm -v "$(WORKSPACE_DIR)":/root/workspace $(TOOLCHAIN_NAME) /bin/bash
|
docker run -it --rm -v "$(WORKSPACE_DIR)":/root/workspace $(TOOLCHAIN_NAME) /bin/bash -c "git config --global --add safe.directory /root/workspace && exec bash"
|
||||||
else
|
else
|
||||||
shell:
|
shell:
|
||||||
$(info $(BOLD)Connecting to running $(TOOLCHAIN_NAME)...$(NORM))
|
$(info $(BOLD)Connecting to running $(TOOLCHAIN_NAME)...$(NORM))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue