Build: Support offline build of bwc zip (#24037)

The bwc checkout for backcompat tests currently always tries to fetch
the latest from the upstream remote. This change makes fetching from
upstream conditional on not running an offline build.
This commit is contained in:
Ryan Ernst 2017-04-10 20:04:18 -07:00 committed by GitHub
parent 16a2048416
commit b0003edcf4
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ task addUpstream(type: LoggedExec) {
} }
task fetchLatest(type: LoggedExec) { task fetchLatest(type: LoggedExec) {
onlyIf { project.gradle.startParameter.isOffline() == false }
dependsOn addUpstream dependsOn addUpstream
workingDir = checkoutDir workingDir = checkoutDir
commandLine = ['git', 'fetch', 'upstream'] commandLine = ['git', 'fetch', 'upstream']