Skip to content

Commit

Permalink
Configure git email and name in docker
Browse files Browse the repository at this point in the history
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.
erijo committed Dec 29, 2020

Verified

This commit was signed with the committer’s verified signature.
erijo Erik Flodin
1 parent 6fc510f commit ec3956c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 "[email protected]" \
&& 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

0 comments on commit ec3956c

Please sign in to comment.