mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
test: use git clone --bare
instead of manual mv
This commit is contained in:
parent
699f6f454d
commit
2fd4b440bc
@ -10,10 +10,9 @@ RUN git config --global user.email "testuser@example.com" &&\
|
|||||||
git init -b master . &&\
|
git init -b master . &&\
|
||||||
git add Cargo.toml src &&\
|
git add Cargo.toml src &&\
|
||||||
git commit -m "Initial commit" &&\
|
git commit -m "Initial commit" &&\
|
||||||
mv .git ../bar.git &&\
|
cd .. &&\
|
||||||
cd ../bar.git &&\
|
git clone --bare bar bar.git &&\
|
||||||
git config --bool core.bare true &&\
|
rm -rf bar
|
||||||
rm -rf ../bar
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
|
@ -17,10 +17,9 @@ RUN git config --global user.email "testuser@example.com" &&\
|
|||||||
git init -b master . &&\
|
git init -b master . &&\
|
||||||
git add Cargo.toml src &&\
|
git add Cargo.toml src &&\
|
||||||
git commit -m "Initial commit" &&\
|
git commit -m "Initial commit" &&\
|
||||||
mv .git ../bar.git &&\
|
cd .. &&\
|
||||||
cd ../bar.git &&\
|
git clone --bare bar bar.git &&\
|
||||||
git config --bool core.bare true &&\
|
rm -rf bar
|
||||||
rm -rf ../bar
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user