Skip to content

Commit

Permalink
Fixed proj_mgmt/buildVersion_src to deal with (HEAD detached at x.y.z…
Browse files Browse the repository at this point in the history
…) when trying to find git branch name
  • Loading branch information
Robert McLay committed Mar 17, 2024
1 parent 9e62b59 commit 2b61f9f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.new
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 3 additions & 0 deletions proj_mgmt/buildVersion_src
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b61f9f

Please sign in to comment.