mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
tests: git repo mirror tests require git >= 2.3
This commit is contained in:
parent
6570e85a2b
commit
f0795cc092
1 changed files with 52 additions and 52 deletions
|
|
@ -1030,6 +1030,7 @@ test -e $KEYSTORE
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
echo_header "sign binary repo in offline box, then publishing from online box"
|
echo_header "sign binary repo in offline box, then publishing from online box"
|
||||||
|
|
||||||
|
if have_git_2_3; then
|
||||||
OFFLINE_ROOT=`create_test_dir`
|
OFFLINE_ROOT=`create_test_dir`
|
||||||
KEYSTORE=$WORKSPACE/tests/keystore.jks
|
KEYSTORE=$WORKSPACE/tests/keystore.jks
|
||||||
LOCAL_COPY_DIR=`create_test_dir`/fdroid
|
LOCAL_COPY_DIR=`create_test_dir`/fdroid
|
||||||
|
|
@ -1050,9 +1051,7 @@ BINARY_TRANSPARENCY_REMOTE=`create_test_dir`
|
||||||
SERVER_GIT_MIRROR=`create_test_dir`
|
SERVER_GIT_MIRROR=`create_test_dir`
|
||||||
cd $SERVER_GIT_MIRROR
|
cd $SERVER_GIT_MIRROR
|
||||||
git init
|
git init
|
||||||
if have_git_2_3; then
|
|
||||||
git config receive.denyCurrentBranch updateInstead
|
git config receive.denyCurrentBranch updateInstead
|
||||||
fi
|
|
||||||
|
|
||||||
cd $OFFLINE_ROOT
|
cd $OFFLINE_ROOT
|
||||||
fdroid_init_with_prebuilt_keystore
|
fdroid_init_with_prebuilt_keystore
|
||||||
|
|
@ -1085,6 +1084,7 @@ cd $BINARY_TRANSPARENCY_REMOTE
|
||||||
[ `git rev-list --count HEAD` == "1" ]
|
[ `git rev-list --count HEAD` == "1" ]
|
||||||
cd $SERVER_GIT_MIRROR
|
cd $SERVER_GIT_MIRROR
|
||||||
[ `git rev-list --count HEAD` == "1" ]
|
[ `git rev-list --count HEAD` == "1" ]
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue