IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.
Apache License 2.0
41 stars 141 forks source link

GitUtils - fix variables in error message when multiple references are found #498

Closed dennis-behm closed 6 months ago

dennis-behm commented 6 months ago

This fixes the below exception in the condition that multiple references are found:

Caught: groovy.lang.MissingPropertyException: No such property: dir for class: GitUtilities
groovy.lang.MissingPropertyException: No such property: dir for class: GitUtilities
    at GitUtilities.getCurrentGitDetachedBranch(GitUtilities.groovy:81)
    at build.populateBuildProperties(build.groovy:522)
    at build.initializeBuildProcess(build.groovy:108)
    at build.run(build.groovy:36)