mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 14:20:55 +00:00
changed to get HEAD if compiled from a detached head
This commit is contained in:
1 parent
c1ee737d74
commit
b8ee00a552
1 file changed
+4
@@ -33,6 +33,10 @@ preBuild.doLast {
|
||||
git_branch_or_tag = git_tag.toString().trim()
|
||||
}
|
||||
|
||||
if (git_branch_or_tag.size() == 0) {
|
||||
git_branch_or_tag = "HEAD"
|
||||
}
|
||||
|
||||
def build_time = new Date().toString()
|
||||
|
||||
// save the combined build info into assets/build.info file
|
||||
|
||||
Reference in new issue
Block a user