[ci] check diff with common ancestor

This commit is contained in:
proletarius101 2022-07-24 09:25:28 +00:00
parent cff38f73b8
commit e03c2dcf57

View file

@ -46,8 +46,9 @@ variables:
export TARGET_REF="${CI_COMMIT_BEFORE_SHA}"
export SOURCE_REF="${CI_COMMIT_SHA}"
else
git fetch https://gitlab.com/fdroid/fdroiddata.git $CI_DEFAULT_BRANCH
export TARGET_REF="FETCH_HEAD"
git remote add upstream https://gitlab.com/fdroid/fdroiddata.git
git fetch upstream ${CI_DEFAULT_BRANCH}
export TARGET_REF=$(git merge-base --fork-point upstream/${CI_DEFAULT_BRANCH})
export SOURCE_REF="${CI_COMMIT_SHA}"
fi;