summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/find_git.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-17 21:43:04 +0800
committerruki <[email protected]>2017-05-17 21:43:04 +0800
commitc315b83eb9a5b84aeab8fb1f93a9086664f5177e (patch)
tree34f49bfe3f37a309c24a62a6b6e417e631c1889f /xmake/modules/lib/detect/find_git.lua
parentb406ed83128331bf9360154606fbcde2ca4f325d (diff)
add find gzip module
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