Skip to content

Commit 04fe9a9

Browse files
authored
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.
1 parent 7c201a6 commit 04fe9a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/bwc/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ subprojects {
6868
doLast {
6969
project.ext.remoteExists = false
7070
output.toString('UTF-8').eachLine {
71-
if (it.contains("${remote}\thttps://github.com/${remote}/elasticsearch.git")) {
71+
if (it.contains("${remote}\t")) {
7272
project.ext.remoteExists = true
7373
}
7474
}

0 commit comments

Comments
 (0)