From ce5e15d6853a47a7bf1b975a0cc3080a942d2ce3 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 20 Oct 2022 16:41:59 +0200 Subject: [PATCH] tests/run-tests: fix "fatal: transport 'file' not allowed" https://gitlab.com/eighthave/fdroidserver/-/jobs/3202418899 --- tests/run-tests | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run-tests b/tests/run-tests index c2507f99..15f2269d 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -1289,6 +1289,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 @@ -1363,6 +1366,7 @@ echo "CurrentVersionCode: 1" >> metadata/fake.yml $fdroid checkupdates --allow-dirty grep "CurrentVersionCode: 2" metadata/fake.yml +unset GIT_ALLOW_PROTOCOL #------------------------------------------------------------------------------#