Skip to content
代码片段 群组 项目
提交 2c365b8f 编辑于 作者: Ryan Brandenburg's avatar Ryan Brandenburg
浏览文件

Explicitly push to a branch

上级 03f142a9
No related branches found
No related tags found
无相关合并请求
...@@ -107,7 +107,7 @@ try { ...@@ -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): $_"
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册