Fix find remote when building BWC
We look for the remote by scanning the output of "git remote -v" but we
were not actually looking at the output since standard output was not
redirected anywhere. This commit fixes this issue.
Relates
@@ -77,6 +77,8 @@ if (enabled) {
dependsOn createClone
workingDir = checkoutDir
commandLine = ['git', 'remote', '-v']
+ ByteArrayOutputStream output = new ByteArrayOutputStream()
+ standardOutput = output
doLast {
project.ext.remoteExists = false
output.toString('UTF-8').eachLine {
