4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-09-14 09:32:30 +00:00

Handle pull request branch

This commit is contained in:
Neil Alexander
2019-11-28 09:56:14 +00:00
parent 41a2e731eb
commit b88a623a9f

View File

@@ -9,7 +9,11 @@ then
fi fi
# Get the rest of the repository history # 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 then
git fetch --all git fetch --all
git checkout ${APPVEYOR_REPO_BRANCH} git checkout ${APPVEYOR_REPO_BRANCH}