summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/push.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-04-13 23:07:30 +0800
committerruki <[email protected]>2022-04-13 23:07:30 +0800
commit93c10276f18c7ed6e119250ab7cd05df007989f9 (patch)
tree8c0b50dcbdf6e74fdeef430d1850a1b48c90b1a5 /xmake/modules/devel/git/push.lua
parentc6c62b573fb79dbf89733591f46ce92e10ee6fab (diff)
improve push
Diffstat (limited to 'xmake/modules/devel/git/push.lua')
-rw-r--r--xmake/modules/devel/git/push.lua8
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