diff options
| author | ruki <[email protected]> | 2022-04-13 23:08:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-13 23:08:09 +0800 |
| commit | 8e4983bd55693419b6a7e6548e74e8c829acf5f3 (patch) | |
| tree | 90a87c8ef1a8fd4b7dd1a4b99072549c1ac1ec03 | |
| parent | 93c10276f18c7ed6e119250ab7cd05df007989f9 (diff) | |
enable verbose for git push
| -rw-r--r-- | xmake/modules/devel/git/push.lua | 6 | ||||
| -rw-r--r-- | xmake/modules/private/service/remote_build/client.lua | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/xmake/modules/devel/git/push.lua b/xmake/modules/devel/git/push.lua index ee8e8b968..b56ea4059 100644 --- a/xmake/modules/devel/git/push.lua +++ b/xmake/modules/devel/git/push.lua @@ -50,5 +50,9 @@ function main(url, opt) branch = branch .. ":" .. opt.remote_branch end table.insert(argv, branch) - os.vrunv(git.program, argv, {curdir = opt.repodir}) + if opt.verbose then + os.execv(git.program, argv, {curdir = opt.repodir}) + else + os.vrunv(git.program, argv, {curdir = opt.repodir}) + end end diff --git a/xmake/modules/private/service/remote_build/client.lua b/xmake/modules/private/service/remote_build/client.lua index cb4373b17..ac0ec077c 100644 --- a/xmake/modules/private/service/remote_build/client.lua +++ b/xmake/modules/private/service/remote_build/client.lua @@ -273,7 +273,7 @@ function remote_build_client:_do_syncfiles(remote_path, remote_branch) -- push to remote local remote_url = string.format("%s@%s:%s", user, addr, remote_path) - git.push(remote_url, {remote_branch = remote_branch}) + git.push(remote_url, {remote_branch = remote_branch, verbose = true}) end function remote_build_client:__tostring() |
