Fix empty git branch and remote value issues

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

View File

@ -232,7 +232,7 @@ def releaseChecksTask = tasks.register( "releaseChecks" ) {
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')
}
else {