diff options
| author | ruki <[email protected]> | 2022-04-13 23:07:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-13 23:07:30 +0800 |
| commit | 93c10276f18c7ed6e119250ab7cd05df007989f9 (patch) | |
| tree | 8c0b50dcbdf6e74fdeef430d1850a1b48c90b1a5 /xmake/modules/devel/git/push.lua | |
| parent | c6c62b573fb79dbf89733591f46ce92e10ee6fab (diff) | |
improve push
Diffstat (limited to 'xmake/modules/devel/git/push.lua')
| -rw-r--r-- | xmake/modules/devel/git/push.lua | 8 |
1 files changed, 2 insertions, 6 deletions
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 |
