summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/pull.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/devel/git/pull.lua')
-rw-r--r--xmake/modules/devel/git/pull.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/devel/git/pull.lua b/xmake/modules/devel/git/pull.lua
index a9923bb18..f68e32279 100644
--- a/xmake/modules/devel/git/pull.lua
+++ b/xmake/modules/devel/git/pull.lua
@@ -59,7 +59,9 @@ function main(opt)
table.insert(argv, opt.remote or "origin")
-- set branch
- table.insert(argv, opt.branch or "master")
+ if opt.branch then
+ table.insert(argv, opt.branch)
+ end
-- set tags
if opt.tags then