mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
jenkins-build: git clean
before running fdroid cli tests
Otherwise, `fdroid init` will fail since the old repo files are present.
This commit is contained in:
parent
d06f05e9c8
commit
7d6d827e0b
@ -72,6 +72,7 @@ if [ -e fdroiddata ]; then
|
|||||||
git remote update -p
|
git remote update -p
|
||||||
git checkout master
|
git checkout master
|
||||||
git reset --hard origin/master
|
git reset --hard origin/master
|
||||||
|
# no don't `git clean` here, it'll wipe the APKs in unsigned/
|
||||||
else
|
else
|
||||||
git clone https://gitlab.com/fdroid/fdroiddata.git fdroiddata
|
git clone https://gitlab.com/fdroid/fdroiddata.git fdroiddata
|
||||||
cd fdroiddata
|
cd fdroiddata
|
||||||
|
@ -67,6 +67,7 @@ if [ -e fdroiddata ]; then
|
|||||||
git remote update -p
|
git remote update -p
|
||||||
git checkout master
|
git checkout master
|
||||||
git reset --hard origin/master
|
git reset --hard origin/master
|
||||||
|
git clean -fdx
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
git clone --depth 1 https://gitlab.com/fdroid/fdroiddata.git fdroiddata
|
git clone --depth 1 https://gitlab.com/fdroid/fdroiddata.git fdroiddata
|
||||||
|
Loading…
Reference in New Issue
Block a user