Skip to content

Commit f09a118

Browse files
committed
test: set safe.directory for git repo in containers
1 parent fc13634 commit f09a118

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/cargo-test-support/containers/apache/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ COPY bar /repos/bar
66
WORKDIR /repos/bar
77
RUN git config --global user.email "[email protected]" &&\
88
git config --global user.name "Test User" &&\
9+
git config --system --add safe.directory '*' &&\
910
git init -b master . &&\
1011
git add Cargo.toml src &&\
1112
git commit -m "Initial commit" &&\

crates/cargo-test-support/containers/sshd/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ USER testuser
1414
WORKDIR /repos/bar
1515
RUN git config --global user.email "[email protected]" &&\
1616
git config --global user.name "Test User" &&\
17+
git config --system --add safe.directory '*' &&\
1718
git init -b master . &&\
1819
git add Cargo.toml src &&\
1920
git commit -m "Initial commit" &&\

0 commit comments

Comments
 (0)