]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix AppVeyor doc short-circuit (GH-5633)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 Feb 2018 22:14:45 +0000 (14:14 -0800)
committerZachary Ware <zachary.ware@gmail.com>
Sun, 11 Feb 2018 22:14:45 +0000 (16:14 -0600)
(cherry picked from commit 6ea20fc719dcaf102d2cefa1786f0421514f7a58)

.github/appveyor.yml

index a4c11df2795ed192947bac416dc89a7357a7c787..9d47c9975e5a99581e19e5a439c5222d27b523fe 100644 (file)
@@ -14,12 +14,15 @@ before_build:
       } elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
         echo 'Not a PR, doing full build.'
       } else {
-        $mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
+        git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH
+        $mergebase = git merge-base HEAD FETCH_HEAD
         $changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
         If (!$changes) {
           echo 'Only docs were updated, stopping build process.'
           Exit-AppveyorBuild
         }
+        echo 'Doing full build due to non-doc changes in these files:'
+        echo $changes
       }