diff --git a/README.new b/README.new index 845b4069f..cb05f698f 100644 --- a/README.new +++ b/README.new @@ -135,4 +135,7 @@ Lmod 8.7+ * Allow io.popen() to be called from a modulefile. * Created buildVersion_src to build src/Version.lua when installing Lmod. (8.7.36) * a clean version of 8.7.35 - +W.I.P: + (8.7.37) * Issue #698: Use the correct mname from Framestack when unregistering a "break" module + * Ignore backup files (*~ .*.swp etc) files in a modulerc.d directory. + * Fixed buildVersion_src to deal with (HEAD detached at x.y.z) diff --git a/proj_mgmt/buildVersion_src b/proj_mgmt/buildVersion_src index ab0f1325e..6cff21ad9 100755 --- a/proj_mgmt/buildVersion_src +++ b/proj_mgmt/buildVersion_src @@ -47,6 +47,9 @@ function main() local gittag = arg[3] local vdate = arg[4] + if (branch:find("HEAD detached")) then + branch = "main" + end local s = buildVersionCode(branch, tag, gittag, vdate) print (s) end