Explicitly push to a branch
This commit is contained in:
Родитель
03f142a96f
Коммит
2c365b8fc5
|
@ -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): $_"
|
||||
|
|
Загрузка…
Ссылка в новой задаче