fix(scoop-update): Force sync tags w/ remote branch while scoop update (#6439)

This commit is contained in:
Hsiao-nan Cheung
2025-09-26 15:20:33 +08:00
committed by GitHub
parent b592b38abd
commit db8d554f80
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
### Bug Fixes
- **scoop-update**: Force sync tags w/ remote branch while scoop update ([#6439](https://github.com/ScoopInstaller/Scoop/issues/6439))
- **scoop-download:** Fix function `nightly_version` not defined error ([#6386](https://github.com/ScoopInstaller/Scoop/issues/6386))
- **autoupdate:** Use origin URL to handle URLs with fragment in GitHub mode ([#6455](https://github.com/ScoopInstaller/Scoop/issues/6455))
- **buckets|scoop-info:** Switch git log date format to ISO 8601 to avoid locale issues ([#6446](https://github.com/ScoopInstaller/Scoop/issues/6446))

View File

@@ -136,7 +136,7 @@ function Sync-Scoop {
# reset branch HEAD
Invoke-Git -Path $currentdir -ArgumentList @('reset', '--hard', "origin/$configBranch", '-q')
} else {
Invoke-Git -Path $currentdir -ArgumentList @('pull', '-q')
Invoke-Git -Path $currentdir -ArgumentList @('pull', '--tags', '--force', '-q')
}
$res = $lastexitcode