Push UpdateRepos to maestro branch

This commit is contained in:
Ryan Brandenburg 2018-10-09 11:54:24 -07:00
parent 2948972bfb
commit f65c1a4e3d
1 changed files with 3 additions and 2 deletions

View File

@ -106,10 +106,11 @@ try {
# Push the changes
if (-not $NoPush -and ($Force -or ($PSCmdlet.ShouldContinue("Pushing updates to repos.", 'Push the changes to these repos?')))) {
try {
Invoke-Block { & git @gitConfigArgs push origin HEAD:$($submodule.branch)}
$newBranch = "maestro/$($submodule.branch)"
Invoke-Block { & git @gitConfigArgs push origin HEAD:$newBranch}
}
catch {
Write-Warning "Error in pushing $($submodule.module): $_"
Write-Warning "Error in pushing $newBranch: $_"
$build_errors += @{
Repo = $submodule.module
Message = $_