Fix empty git branch and remote value issues

This commit is contained in:
Christian Beikov 2024-06-14 17:42:02 +02:00
parent f0112a9aea
commit 3ba214f7bd
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ def releaseChecksTask = tasks.register( "releaseChecks" ) {
gitBranchLocal = executeGitCommand( 'branch', '--show-current' ).trim() gitBranchLocal = executeGitCommand( 'branch', '--show-current' ).trim()
} }
if (project.hasProperty('gitRemote') && !project.hasProperty('gitRemote').isEmpty()) { if (project.hasProperty('gitRemote') && !project.property('gitRemote').isEmpty()) {
gitRemoteLocal = project.property('gitRemote') gitRemoteLocal = project.property('gitRemote')
} }
else { else {