tests: git repo mirror tests require git >= 2.3

This commit is contained in:
Hans-Christoph Steiner 2018-05-14 15:24:21 +02:00
parent 6570e85a2b
commit f0795cc092

View file

@ -1030,6 +1030,7 @@ test -e $KEYSTORE
#------------------------------------------------------------------------------#
echo_header "sign binary repo in offline box, then publishing from online box"
if have_git_2_3; then
OFFLINE_ROOT=`create_test_dir`
KEYSTORE=$WORKSPACE/tests/keystore.jks
LOCAL_COPY_DIR=`create_test_dir`/fdroid
@ -1050,9 +1051,7 @@ BINARY_TRANSPARENCY_REMOTE=`create_test_dir`
SERVER_GIT_MIRROR=`create_test_dir`
cd $SERVER_GIT_MIRROR
git init
if have_git_2_3; then
git config receive.denyCurrentBranch updateInstead
fi
cd $OFFLINE_ROOT
fdroid_init_with_prebuilt_keystore
@ -1085,6 +1084,7 @@ cd $BINARY_TRANSPARENCY_REMOTE
[ `git rev-list --count HEAD` == "1" ]
cd $SERVER_GIT_MIRROR
[ `git rev-list --count HEAD` == "1" ]
fi
#------------------------------------------------------------------------------#