We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e65cbe5 commit f0112a9Copy full SHA for f0112a9
release/release.gradle
@@ -233,14 +233,14 @@ def releaseChecksTask = tasks.register( "releaseChecks" ) {
233
String gitBranchLocal
234
String gitRemoteLocal
235
236
- if (project.hasProperty('gitBranch')) {
+ if (project.hasProperty('gitBranch') && !project.property('gitBranch').isEmpty()) {
237
gitBranchLocal = project.property('gitBranch')
238
}
239
else {
240
gitBranchLocal = executeGitCommand( 'branch', '--show-current' ).trim()
241
242
243
- if (project.hasProperty('gitRemote')) {
+ if (project.hasProperty('gitRemote') && !project.hasProperty('gitRemote').isEmpty()) {
244
gitRemoteLocal = project.property('gitRemote')
245
246
0 commit comments