From 07c8483607759f79cb3cfbf7351ee07cc714d8b9 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 29 Sep 2019 08:07:13 +0800 Subject: load git package env --- xmake/modules/devel/git/pull.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'xmake/modules/devel/git/pull.lua') diff --git a/xmake/modules/devel/git/pull.lua b/xmake/modules/devel/git/pull.lua index 4c274a70b..6be175bf9 100644 --- a/xmake/modules/devel/git/pull.lua +++ b/xmake/modules/devel/git/pull.lua @@ -41,10 +41,7 @@ function main(opt) opt = opt or {} -- find git - local git = find_tool("git") - if not git then - return - end + local git = assert(find_tool("git"), "git not found!") -- init argv local argv = {"pull"} -- cgit v1.3.1