summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/apply.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/devel/git/apply.lua')
-rw-r--r--xmake/modules/devel/git/apply.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/modules/devel/git/apply.lua b/xmake/modules/devel/git/apply.lua
index e47f31adc..c52aeeb3c 100644
--- a/xmake/modules/devel/git/apply.lua
+++ b/xmake/modules/devel/git/apply.lua
@@ -38,10 +38,7 @@ import("lib.detect.find_tool")
function main(patchfile, opt)
-- find git
- local git = find_tool("git")
- if not git then
- return
- end
+ local git = assert(find_tool("git"), "git not found!")
-- init argv
opt = opt or {}