Relax remote check for bwc project checkouts (#28666)

The remote check previously validated both the remote name and the
repository as well, meaning that if someone passed in a repository that
was not a github URL, it would fail. This meant that it was not possible
to fully test bwc out with multiple branches without first pushing to a
remote. Removing the full check allows a user to pass in the origin
remote as its remote, which is already added as a file based remote to
each bwc snapshot build. This will allow changes to be made locally
across all bwc branches, tested, and then pushed simultaneously.
This commit is contained in:
Michael Basnight 2018-02-13 14:54:11 -06:00 committed by GitHub
parent 7c201a64b5
commit 04fe9a9ab5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ subprojects {
doLast { doLast {
project.ext.remoteExists = false project.ext.remoteExists = false
output.toString('UTF-8').eachLine { output.toString('UTF-8').eachLine {
if (it.contains("${remote}\thttps://github.com/${remote}/elasticsearch.git")) { if (it.contains("${remote}\t")) {
project.ext.remoteExists = true project.ext.remoteExists = true
} }
} }