test: set safe.directory for git repo in apache container

See f4aa8c8bb1
This commit is contained in:
Weihang Lo 2024-05-15 23:40:18 -04:00
parent fc13634f78
commit 699f6f454d
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7

View File

@ -6,6 +6,7 @@ COPY bar /repos/bar
WORKDIR /repos/bar
RUN git config --global user.email "testuser@example.com" &&\
git config --global user.name "Test User" &&\
git config --system --add safe.directory '*' &&\
git init -b master . &&\
git add Cargo.toml src &&\
git commit -m "Initial commit" &&\