From 93c10276f18c7ed6e119250ab7cd05df007989f9 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 13 Apr 2022 23:07:30 +0800 Subject: improve push --- xmake/modules/devel/git/push.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'xmake/modules/devel/git/push.lua') diff --git a/xmake/modules/devel/git/push.lua b/xmake/modules/devel/git/push.lua index aaeee5c28..ee8e8b968 100644 --- a/xmake/modules/devel/git/push.lua +++ b/xmake/modules/devel/git/push.lua @@ -32,7 +32,7 @@ import("branch", {alias = "git_branch"}) -- -- import("devel.git") -- --- git.push(url, {branch = "master, remote_branch = "xxx", force = true, "repodir = "/tmp/xmake", password = "xxx"}) +-- git.push(url, {branch = "master, remote_branch = "xxx", force = true, "repodir = "/tmp/xmake"}) -- -- @endcode -- @@ -50,9 +50,5 @@ function main(url, opt) branch = branch .. ":" .. opt.remote_branch end table.insert(argv, branch) - local stdin - if opt.password then - stdin = opt.password .. "\n" - end - os.vrunv(git.program, argv, {curdir = opt.repodir, stdin = stdin}) + os.vrunv(git.program, argv, {curdir = opt.repodir}) end -- cgit v1.3.1