From e04e02c98fd88e4b9effb378f7e31ad6174150c6 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Sun, 12 May 2019 18:48:15 -0700 Subject: Reference target branch as a remote rather than a local branch --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4beb59d..f6a1a9d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -54,7 +54,7 @@ jobs: PREV_COMMIT="$(curl -sSL "${REQUEST_URL}" | grep -Po '"sourceVersion":"\K.*?[^\\](?=",)')" if [[ -z $PREV_COMMIT ]]; then echo "Could not retrieve the previous build's commit. Falling back to the head of the target branch." - PREV_COMMIT=$SYSTEM_PULLREQUEST_TARGETBRANCH + PREV_COMMIT="origin/$SYSTEM_PULLREQUEST_TARGETBRANCH" else echo "Retrieved $PREV_COMMIT as previous build's commit." fi -- cgit v1.2.3