Log checkout so SHA is known

This commit changes the task type of the checkoutBwcBranch task to Exec
from LoggedExec so that the output of the checkout command is
shown. This enables us to see the SHA used for the checkout which can be
useful when debugging a BWC break.

Relates #25166
This commit is contained in:
Jason Tedor 2017-06-09 22:06:51 -04:00 committed by GitHub
parent 3405badfb1
commit a7a3af6f48
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ if (enabled) {
commandLine = ['git', 'fetch', 'upstream'] commandLine = ['git', 'fetch', 'upstream']
} }
task checkoutBwcBranch(type: LoggedExec) { // this is an Exec task so that the SHA that is checked out is logged
task checkoutBwcBranch(type: Exec) {
dependsOn fetchLatest dependsOn fetchLatest
workingDir = checkoutDir workingDir = checkoutDir
commandLine = ['git', 'checkout', "upstream/${bwcBranch}"] commandLine = ['git', 'checkout', "upstream/${bwcBranch}"]