From 2c365b8fc5b023f81342065e2e6373412ff22117 Mon Sep 17 00:00:00 2001 From: Ryan Brandenburg Date: Wed, 10 Oct 2018 09:26:24 -0700 Subject: [PATCH] Explicitly push to a branch --- scripts/UpdateRepos.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/UpdateRepos.ps1 b/scripts/UpdateRepos.ps1 index c4291f21..69d23232 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): $_"