Skip to content

Commit d966d1b

Browse files
Fix git tagged builds (premake#2483)
1 parent 4f93617 commit d966d1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

premake5.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,10 @@
203203
end
204204
end
205205

206+
local git_tag = nil
207+
206208
if premake.action.isConfigurable() then
207-
local git_tag = retrieve_git_tag() or io.readfile("git-tags.txt")
209+
git_tag = retrieve_git_tag() or io.readfile("git-tags.txt")
208210

209211
if git_tag == "$Format:%(describe:tags=true)$" then
210212
git_tag = nil

0 commit comments

Comments
 (0)