File fix-git.patch of Package audiveris
Index: app/build.gradle
===================================================================
--- app/build.gradle.orig
+++ app/build.gradle
@@ -283,17 +283,10 @@ jar {
// Retrieve hash of the latest commit from Git
// Output is in 'app.ext.commit' property
-tasks.register('getCommit', Exec) {
+tasks.register('getCommit') {
description = "Retrieves hash of git latest commit"
- // NOTA: We exclude the folder '<root>/flatpak/flathub' from this commit retrieval
- commandLine = "git log -n1 --pretty=%H -- :^../flatpak/flathub".split(' ')
- standardOutput = new ByteArrayOutputStream()
- doLast {
- def commit = standardOutput.toString().replaceAll('\n', '')
- logger.info("app. New commit: {}", commit)
- app.ext.commit = commit
- }
+ project.ext.commit = "unknown"
}
tasks.register('createBuildFolder') {