Skip to content

Commit

Permalink
Fix find remote when building BWC
Browse files Browse the repository at this point in the history
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 #27308
  • Loading branch information
jasontedor committed Nov 8, 2017
1 parent 58a28da commit 798066a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distribution/bwc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,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 {
Expand Down

0 comments on commit 798066a

Please sign in to comment.