summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/pull.lua
diff options
context:
space:
mode:
authorJérôme Leclercq <[email protected]>2023-02-20 12:22:49 +0100
committerGitHub <[email protected]>2023-02-20 12:22:49 +0100
commit21c46631df76babbe5b13f14baf9fd522dcb5bf7 (patch)
tree6d32d2b9e32ba814a4f21597d293d199ba005c59 /xmake/modules/devel/git/pull.lua
parent1c503a56d8cacd94d178715d851244a399c6c664 (diff)
Don't default to "master" when pulling
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