From b6f551766a0909da235887aca0fad8de1130fc27 Mon Sep 17 00:00:00 2001 From: pa Date: Sun, 5 May 2024 18:49:33 +0000 Subject: [PATCH] add safe dir --- .../.devcontainer/postCreate.sh.jinja | 1 + .../.devcontainer/postCreate.sh | 1 + .../.devcontainer/postCreate.sh | 1 + .../.devcontainer/postCreate.sh | 1 + .../.devcontainer/postCreate.sh | 1 + 5 files changed, 5 insertions(+) diff --git a/.cc/{{cookiecutter.__demo_slug}}/containers/{{cookiecutter.__demo_slug}}/.devcontainer/postCreate.sh.jinja b/.cc/{{cookiecutter.__demo_slug}}/containers/{{cookiecutter.__demo_slug}}/.devcontainer/postCreate.sh.jinja index 27d3c17..f6d190b 100644 --- a/.cc/{{cookiecutter.__demo_slug}}/containers/{{cookiecutter.__demo_slug}}/.devcontainer/postCreate.sh.jinja +++ b/.cc/{{cookiecutter.__demo_slug}}/containers/{{cookiecutter.__demo_slug}}/.devcontainer/postCreate.sh.jinja @@ -14,6 +14,7 @@ ardl get eos --image-type cEOS --version ${CEOS_LAB_VERSION} --import-docker # init demo dir as Git repo if requested for this demo env if ${GIT_INIT}; then cd ${CONTAINERWSF} + git config --global --add safe.directory . git init git add . git commit -m "git init" diff --git a/containers/avd-avd-extended-workshop--part-1/.devcontainer/postCreate.sh b/containers/avd-avd-extended-workshop--part-1/.devcontainer/postCreate.sh index 6ac5276..0ab3cf5 100644 --- a/containers/avd-avd-extended-workshop--part-1/.devcontainer/postCreate.sh +++ b/containers/avd-avd-extended-workshop--part-1/.devcontainer/postCreate.sh @@ -14,6 +14,7 @@ ardl get eos --image-type cEOS --version ${CEOS_LAB_VERSION} --import-docker # init demo dir as Git repo if requested for this demo env if ${GIT_INIT}; then cd ${CONTAINERWSF} + git config --global --add safe.directory . git init git add . git commit -m "git init" diff --git a/containers/clab-build-containerlab-with-ceos/.devcontainer/postCreate.sh b/containers/clab-build-containerlab-with-ceos/.devcontainer/postCreate.sh index aad11be..11ceb3a 100644 --- a/containers/clab-build-containerlab-with-ceos/.devcontainer/postCreate.sh +++ b/containers/clab-build-containerlab-with-ceos/.devcontainer/postCreate.sh @@ -12,6 +12,7 @@ ardl get eos --image-type cEOS --version ${CEOS_LAB_VERSION} --import-docker # init demo dir as Git repo if requested for this demo env if ${GIT_INIT}; then cd ${CONTAINERWSF} + git config --global --add safe.directory . git init git add . git commit -m "git init" diff --git a/containers/cvaas-cvaas-and-avd-demo--evpn-aa/.devcontainer/postCreate.sh b/containers/cvaas-cvaas-and-avd-demo--evpn-aa/.devcontainer/postCreate.sh index 6ac5276..0ab3cf5 100644 --- a/containers/cvaas-cvaas-and-avd-demo--evpn-aa/.devcontainer/postCreate.sh +++ b/containers/cvaas-cvaas-and-avd-demo--evpn-aa/.devcontainer/postCreate.sh @@ -14,6 +14,7 @@ ardl get eos --image-type cEOS --version ${CEOS_LAB_VERSION} --import-docker # init demo dir as Git repo if requested for this demo env if ${GIT_INIT}; then cd ${CONTAINERWSF} + git config --global --add safe.directory . git init git add . git commit -m "git init" diff --git a/containers/cvaas-cvaas-and-avd-demo--evpn-mlag/.devcontainer/postCreate.sh b/containers/cvaas-cvaas-and-avd-demo--evpn-mlag/.devcontainer/postCreate.sh index 6ac5276..0ab3cf5 100644 --- a/containers/cvaas-cvaas-and-avd-demo--evpn-mlag/.devcontainer/postCreate.sh +++ b/containers/cvaas-cvaas-and-avd-demo--evpn-mlag/.devcontainer/postCreate.sh @@ -14,6 +14,7 @@ ardl get eos --image-type cEOS --version ${CEOS_LAB_VERSION} --import-docker # init demo dir as Git repo if requested for this demo env if ${GIT_INIT}; then cd ${CONTAINERWSF} + git config --global --add safe.directory . git init git add . git commit -m "git init"