We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ReleaseTools
release
1 parent 25e09e4 commit 4ca4545Copy full SHA for 4ca4545
tools/ReleaseTools.psm1
@@ -180,8 +180,8 @@ function Update-Branch {
180
Use-Repository -RepositoryName $RepositoryName -Script {
181
$Branch = git branch --show-current
182
if ($Branch -ne "release") {
183
- if ($PSCmdlet.ShouldProcess("release", "git checkout -b")) {
184
- git checkout -b "release"
+ if ($PSCmdlet.ShouldProcess("release", "git checkout -B")) {
+ git checkout -B "release"
185
}
186
187
@@ -389,7 +389,7 @@ function New-ReleasePR {
389
390
if ($PSCmdlet.ShouldProcess("$RepositoryName/release", "git push")) {
391
Write-Host "Pushing release branch..."
392
- git push --force-with-lease origin release
+ git push --set-upstream --force-with-lease origin release
393
394
395
0 commit comments