summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/ls_remote.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-29 08:07:13 +0800
committerruki <[email protected]>2019-09-29 08:07:13 +0800
commit07c8483607759f79cb3cfbf7351ee07cc714d8b9 (patch)
treebbfa0bddff65cea434a08eab27e240113d1b3f0a /xmake/modules/devel/git/ls_remote.lua
parent4df867463bac4c5987441696eabbf6a1f43ea9e4 (diff)
load git package env
Diffstat (limited to 'xmake/modules/devel/git/ls_remote.lua')
-rw-r--r--xmake/modules/devel/git/ls_remote.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/modules/devel/git/ls_remote.lua b/xmake/modules/devel/git/ls_remote.lua
index e946a054a..723372bec 100644
--- a/xmake/modules/devel/git/ls_remote.lua
+++ b/xmake/modules/devel/git/ls_remote.lua
@@ -42,10 +42,7 @@ import("lib.detect.find_tool")
function main(reftype, url)
-- find git
- local git = find_tool("git")
- if not git then
- return
- end
+ local git = assert(find_tool("git"), "git not found!")
-- init reference type
reftype = reftype or "refs"