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

.github/appveyor.yml

index fa614dbf9b87de567b34943c959a9d20bb098382..c69e0ad2c4f2a4d53ad31db11421977ebe88c808 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
       }