From ec3956c560744ecf976300a8701e974f84512668 Mon Sep 17 00:00:00 2001 From: Erik Flodin Date: Tue, 29 Dec 2020 19:51:55 +0100 Subject: [PATCH] Configure git email and name in docker to make it easier to use yadm in the container. Set it in the system config (i.e. /etc/gitconfig) to avoid getting a clash if one wants to clone an existing yadm repo that contains a .gitconfig. --- test/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Dockerfile b/test/Dockerfile index 8b5d4df..3e5a299 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -61,6 +61,10 @@ ADD https://raw.githubusercontent.com/TheLocehiliosan/yadm/1.12.0/yadm /usr/loca ADD https://raw.githubusercontent.com/TheLocehiliosan/yadm/2.5.0/yadm /usr/local/bin/yadm-2.5.0 RUN chmod +x /usr/local/bin/yadm-* +# Configure git to make it easier to test yadm manually +RUN git config --system user.email "test@yadm.io" \ + && git config --system user.name "Yadm Test" + # /yadm will be the work directory for all tests # docker commands should mount the local yadm project as /yadm WORKDIR /yadm