Handle pull request branch

This commit is contained in:
Neil Alexander 2019-11-28 09:56:14 +00:00
parent 41a2e731eb
commit b88a623a9f
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -9,7 +9,11 @@ then
fi
# Get the rest of the repository history
if [ "${APPVEYOR_REPO_BRANCH}" != "" ];
if [ "${APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH}" != "" ];
then
git fetch --all
git checkout ${APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH}
elif [ "${APPVEYOR_REPO_BRANCH}" != "" ];
then
git fetch --all
git checkout ${APPVEYOR_REPO_BRANCH}