fix: force Git fetch during updates
Ensures packer updates don't fail when upstream force-pushes tags.
This commit is contained in:
parent
1d0cf98a56
commit
12c8a0f4f0
|
@ -301,9 +301,9 @@ default configuration values (and structure of the configuration table) are:
|
|||
git = {
|
||||
cmd = 'git', -- The base command for git operations
|
||||
subcommands = { -- Format strings for git subcommands
|
||||
update = 'pull --ff-only --progress --rebase=false',
|
||||
update = 'pull --ff-only --progress --rebase=false --force',
|
||||
install = 'clone --depth %i --no-single-branch --progress',
|
||||
fetch = 'fetch --depth 999999 --progress',
|
||||
fetch = 'fetch --depth 999999 --progress --force',
|
||||
checkout = 'checkout %s --',
|
||||
update_branch = 'merge --ff-only @{u}',
|
||||
current_branch = 'branch --show-current',
|
||||
|
|
|
@ -215,9 +215,9 @@ default values: >lua
|
|||
git = {
|
||||
cmd = 'git', -- The base command for git operations
|
||||
subcommands = { -- Format strings for git subcommands
|
||||
update = 'pull --ff-only --progress --rebase=false',
|
||||
update = 'pull --ff-only --progress --rebase=false --force',
|
||||
install = 'clone --depth %i --no-single-branch --progress',
|
||||
fetch = 'fetch --depth 999999 --progress',
|
||||
fetch = 'fetch --depth 999999 --progress --force',
|
||||
checkout = 'checkout %s --',
|
||||
update_branch = 'merge --ff-only @{u}',
|
||||
current_branch = 'branch --show-current',
|
||||
|
|
|
@ -27,10 +27,10 @@ local config_defaults = {
|
|||
mark_breaking_changes = true,
|
||||
cmd = 'git',
|
||||
subcommands = {
|
||||
update = 'pull --ff-only --progress --rebase=false',
|
||||
update = 'pull --ff-only --progress --rebase=false --force',
|
||||
update_head = 'merge FETCH_HEAD',
|
||||
install = 'clone --depth %i --no-single-branch --progress',
|
||||
fetch = 'fetch --depth 999999 --progress',
|
||||
fetch = 'fetch --depth 999999 --progress --force',
|
||||
checkout = 'checkout %s --',
|
||||
update_branch = 'merge --ff-only @{u}',
|
||||
current_branch = 'rev-parse --abbrev-ref HEAD',
|
||||
|
|
Loading…
Reference in New Issue