mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
ensure to git reset checkout before updating git submodule
This commit is contained in:
@@ -7,6 +7,9 @@ If ($env:PLATFORM -Match '^x86|x64$') {
|
||||
$dirCheckout = (Get-Item $PSScriptRoot).parent.parent.parent.FullName
|
||||
$meteorBat = Join-Path $dirCheckout 'meteor.bat'
|
||||
|
||||
Write-Host "Resetting git checkout..." -ForegroundColor Magenta
|
||||
& git.exe -C "$dirCheckout" reset --hard
|
||||
|
||||
Write-Host "Updating submodules recursively..." -ForegroundColor Magenta
|
||||
# Appveyor suggests -q flag for 'git submodule...' https://goo.gl/4TFAHm
|
||||
& git.exe -C "$dirCheckout" submodule -q update --init --recursive
|
||||
@@ -36,4 +39,4 @@ while ($attempt -gt 0 -and -not $success) {
|
||||
|
||||
If ($LASTEXITCODE -ne 0) {
|
||||
throw "Running .\meteor --get-ready failed three times."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user