summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-20 23:30:28 +0800
committerGitHub <[email protected]>2023-02-20 23:30:28 +0800
commit775cc38c761e02fa3ff4825eabca344b98c75b78 (patch)
tree6d32d2b9e32ba814a4f21597d293d199ba005c59 /xmake/modules
parent1c503a56d8cacd94d178715d851244a399c6c664 (diff)
parent21c46631df76babbe5b13f14baf9fd522dcb5bf7 (diff)
Merge pull request #3400 from SirLynix/patch-13
Don't default to "master" branch when pulling from git
Diffstat (limited to 'xmake/modules')
-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