changed to get HEAD if compiled from a detached head

This commit is contained in:
Peter Siegmund committed 2015-06-24 16:01:53 +02:00
1 parent c1ee737d74
commit b8ee00a552
1 file changed
+4
+4
View File
@@ -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