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 add Cargo.toml src &&\
|
||||
git commit -m "Initial commit" &&\
|
||||
mv .git ../bar.git &&\
|
||||
cd ../bar.git &&\
|
||||
git config --bool core.bare true &&\
|
||||
rm -rf ../bar
|
||||
cd .. &&\
|
||||
git clone --bare bar bar.git &&\
|
||||
rm -rf bar
|
||||
WORKDIR /
|
||||
|
||||
EXPOSE 443
|
||||
|
@ -17,10 +17,9 @@ RUN git config --global user.email "testuser@example.com" &&\
|
||||
git init -b master . &&\
|
||||
git add Cargo.toml src &&\
|
||||
git commit -m "Initial commit" &&\
|
||||
mv .git ../bar.git &&\
|
||||
cd ../bar.git &&\
|
||||
git config --bool core.bare true &&\
|
||||
rm -rf ../bar
|
||||
cd .. &&\
|
||||
git clone --bare bar bar.git &&\
|
||||
rm -rf bar
|
||||
WORKDIR /
|
||||
USER root
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user