Skip to content

Commit 394efa9

Browse files
committed
fix(scripts): use consistent stderr redirection for branch checkout
1 parent 2ff4add commit 394efa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/powershell/create-new-feature.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ if ($branchName.Length -gt $maxBranchLength) {
250250
if ($hasGit) {
251251
$branchCreated = $false
252252
try {
253-
git checkout -b $branchName 2>&1 | Out-Null
253+
git checkout -b $branchName 2>$null | Out-Null
254254
if ($LASTEXITCODE -eq 0) {
255255
$branchCreated = $true
256256
}

0 commit comments

Comments
 (0)