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?')))) {
|
if (-not $NoPush -and ($Force -or ($PSCmdlet.ShouldContinue("Pushing updates to repos.", 'Push the changes to these repos?')))) {
|
||||||
try {
|
try {
|
||||||
$newBranch = "maestro/$($submodule.branch)"
|
$newBranch = "maestro/$($submodule.branch)"
|
||||||
Invoke-Block { & git @gitConfigArgs push origin HEAD:$newBranch}
|
Invoke-Block { & git @gitConfigArgs push origin HEAD:refs/heads/$newBranch}
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Warning "Error in pushing $($newBranch): $_"
|
Write-Warning "Error in pushing $($newBranch): $_"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче