From a686b8ed36278725cd17fcce03d52ec2b0dc788c Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Fri, 9 Mar 2018 12:11:37 -0800 Subject: [PATCH] UpdateRepos.ps1 get latest of branch --- scripts/UpdateRepos.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/UpdateRepos.ps1 b/scripts/UpdateRepos.ps1 index 71effaeb04..24b921b867 100755 --- a/scripts/UpdateRepos.ps1 +++ b/scripts/UpdateRepos.ps1 @@ -56,11 +56,12 @@ Push-Location $ModuleDirectory try { $build_errors = @() - # Get-Submodules also update --init's them $submodules = Get-Submodules $RepoRoot foreach ($submodule in $submodules) { Push-Location $submodule.path try { + Invoke-Block { & git fetch } + Invoke-Block { & git checkout origin/$($submodule.branch) } $depsFile = Join-Path (Join-Path $($submodule.path) "build") "dependencies.props" if (!(Test-Path $depsFile)) {