Skip to content

Commit 2e92cfd

Browse files
beikovmbellade
authored andcommitted
Fix empty git branch and remote value issues
1 parent 47cd06c commit 2e92cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release/release.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ def releaseChecksTask = tasks.register( "releaseChecks" ) {
225225
String gitBranchLocal
226226
String gitRemoteLocal
227227

228-
if (project.hasProperty('gitBranch')) {
228+
if (project.hasProperty('gitBranch') && !project.property('gitBranch').isEmpty()) {
229229
gitBranchLocal = project.property('gitBranch')
230230
}
231231
else {
232232
gitBranchLocal = executeGitCommand( 'branch', '--show-current' ).trim()
233233
}
234234

235-
if (project.hasProperty('gitRemote')) {
235+
if (project.hasProperty('gitRemote') && !project.property('gitRemote').isEmpty()) {
236236
gitRemoteLocal = project.property('gitRemote')
237237
}
238238
else {

0 commit comments

Comments
 (0)