summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/find_git.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/lib/detect/find_git.lua')
-rw-r--r--xmake/modules/lib/detect/find_git.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/lib/detect/find_git.lua b/xmake/modules/lib/detect/find_git.lua
index de34651ec..00665d8be 100644
--- a/xmake/modules/lib/detect/find_git.lua
+++ b/xmake/modules/lib/detect/find_git.lua
@@ -46,7 +46,7 @@ function main(argv)
-- find program version
local version = nil
- if argv and argv.version then
+ if program and argv and argv.version then
version = find_programver(program)
end