tests/run-tests: fix "fatal: transport 'file' not allowed"

https://gitlab.com/eighthave/fdroidserver/-/jobs/3202418899
This commit is contained in:
Hans-Christoph Steiner 2022-10-20 16:41:59 +02:00
parent 2bde06a60f
commit 2b5c35829f
1 changed files with 4 additions and 0 deletions

View File

@ -1303,6 +1303,9 @@ fi
#------------------------------------------------------------------------------#
echo_header "Test recovering from from broken git submodules"
# On some platforms, checkupdates submodule tests need explicit perms to use file:///
export GIT_ALLOW_PROTOCOL=file
ROOT=$(create_test_dir)
cd "$ROOT"
mkdir foo bar
@ -1425,6 +1428,7 @@ EOF
$fdroid checkupdates --allow-dirty --auto -v
grep "CurrentVersionCode: 1" metadata/fake.yml
unset GIT_ALLOW_PROTOCOL
#------------------------------------------------------------------------------#