summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/checkout.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-04-13 23:06:03 +0800
committerruki <[email protected]>2022-04-13 23:06:03 +0800
commitc6c62b573fb79dbf89733591f46ce92e10ee6fab (patch)
tree2dca011079f154c5fd9b6a24853ceda61d5194c5 /xmake/modules/devel/git/checkout.lua
parent9e4be5c8d422a2f089e15679865b217d0958b98c (diff)
add git.push
Diffstat (limited to 'xmake/modules/devel/git/checkout.lua')
-rw-r--r--xmake/modules/devel/git/checkout.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/xmake/modules/devel/git/checkout.lua b/xmake/modules/devel/git/checkout.lua
index c78d8f439..fb1a24e27 100644
--- a/xmake/modules/devel/git/checkout.lua
+++ b/xmake/modules/devel/git/checkout.lua
@@ -37,16 +37,8 @@ import("lib.detect.find_tool")
-- @endcode
--
function main(commit, opt)
-
- -- init options
opt = opt or {}
-
- -- find git
local git = assert(find_tool("git"), "git not found!")
-
- -- init argv
local argv = {"checkout", commit}
-
- -- checkout it
os.vrunv(git.program, argv, {curdir = opt.repodir})
end