diff --git a/scripts/UpdateRepos.ps1 b/scripts/UpdateRepos.ps1 index c4291f2190..69d23232d8 100755 --- a/scripts/UpdateRepos.ps1 +++ b/scripts/UpdateRepos.ps1 @@ -107,7 +107,7 @@ try { if (-not $NoPush -and ($Force -or ($PSCmdlet.ShouldContinue("Pushing updates to repos.", 'Push the changes to these repos?')))) { try { $newBranch = "maestro/$($submodule.branch)" - Invoke-Block { & git @gitConfigArgs push origin HEAD:$newBranch} + Invoke-Block { & git @gitConfigArgs push origin HEAD:refs/heads/$newBranch} } catch { Write-Warning "Error in pushing $($newBranch): $_"