Skip to content

Commit a7a3af6

Browse files
authored
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 elastic#25166
1 parent 3405bad commit a7a3af6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

distribution/bwc/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ if (enabled) {
101101
commandLine = ['git', 'fetch', 'upstream']
102102
}
103103

104-
task checkoutBwcBranch(type: LoggedExec) {
104+
// this is an Exec task so that the SHA that is checked out is logged
105+
task checkoutBwcBranch(type: Exec) {
105106
dependsOn fetchLatest
106107
workingDir = checkoutDir
107108
commandLine = ['git', 'checkout', "upstream/${bwcBranch}"]

0 commit comments

Comments
 (0)