diff options
| author | Jérôme Leclercq <[email protected]> | 2023-02-20 12:22:49 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-20 12:22:49 +0100 |
| commit | 21c46631df76babbe5b13f14baf9fd522dcb5bf7 (patch) | |
| tree | 6d32d2b9e32ba814a4f21597d293d199ba005c59 /xmake/modules/devel/git/pull.lua | |
| parent | 1c503a56d8cacd94d178715d851244a399c6c664 (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.lua | 4 |
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 |
