valepakh commented on code in PR #6974:
URL: https://github.com/apache/ignite-3/pull/6974#discussion_r2527060120
##########
buildscripts/generate-version-file.gradle:
##########
@@ -16,9 +16,9 @@
*/
def createVersionFile = tasks.register('createVersionFile') {
- onlyIf {
- project.hasProperty("lastCommitHash")
- }
+ def commitHash = project.hasProperty("lastCommitHash")
+ ? project.property("lastCommitHash")
+ : 'git rev-parse HEAD'.execute().text.trim()
Review Comment:
Let's pass the root directory as a working directory and check the result of
the execution
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]