From cc3cb5af264521af7f909ffe0c7138f1936e3a4b Mon Sep 17 00:00:00 2001 From: pa Date: Sun, 5 May 2024 19:50:56 +0000 Subject: [PATCH] add git user and mail to postCreate --- .../.devcontainer/postCreate.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 11d43b0..3c39429 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 @@ -15,7 +15,9 @@ ardl get eos --image-type cEOS --version ${CEOS_LAB_VERSION} --import-docker if ${GIT_INIT}; then cd ${CONTAINERWSF} git init - git config --global --add safe.directory ${PWD} + git config --add safe.directory ${PWD} + if [ -z "$(git config user.name)" ]; then git config user.email "user@one-click.lab"; fi + if [ -z "$(git config user.email)" ]; then git config user.name "Lab User"; fi git add . git commit -m "git init" fi