Skip to content

Commit 798066a

Browse files
authored
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 #27308
1 parent 58a28da commit 798066a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

distribution/bwc/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ if (enabled) {
7474
dependsOn createClone
7575
workingDir = checkoutDir
7676
commandLine = ['git', 'remote', '-v']
77+
ByteArrayOutputStream output = new ByteArrayOutputStream()
78+
standardOutput = output
7779
doLast {
7880
project.ext.remoteExists = false
7981
output.toString('UTF-8').eachLine {

0 commit comments

Comments
 (0)