File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -180,8 +180,8 @@ function Update-Branch {
180180 Use-Repository - RepositoryName $RepositoryName - Script {
181181 $Branch = git branch -- show-current
182182 if ($Branch -ne " release" ) {
183- if ($PSCmdlet.ShouldProcess (" release" , " git checkout -b " )) {
184- git checkout - b " release"
183+ if ($PSCmdlet.ShouldProcess (" release" , " git checkout -B " )) {
184+ git checkout - B " release"
185185 }
186186 }
187187 }
@@ -389,7 +389,7 @@ function New-ReleasePR {
389389 Use-Repository - RepositoryName $RepositoryName - Script {
390390 if ($PSCmdlet.ShouldProcess (" $RepositoryName /release" , " git push" )) {
391391 Write-Host " Pushing release branch..."
392- git push -- force- with- lease origin release
392+ git push -- set-upstream -- force- with- lease origin release
393393 }
394394 }
395395
You can’t perform that action at this time.
0 commit comments