Skip to content

Commit 3f67cf2

Browse files
committed
Fix script path
1 parent 505b956 commit 3f67cf2

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/powershell/common.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function Get-RepoRoot {
1212
}
1313

1414
# Fall back to script location for non-git repos
15-
$scriptDir = Split-Path -Parent $PSScriptRoot
16-
return (Resolve-Path (Join-Path $scriptDir "..")).Path
15+
return (Resolve-Path (Join-Path $PSScriptRoot "../..")).Path
1716
}
1817

1918
function Get-CurrentBranch {

scripts/powershell/create-new-feature.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ $featureDesc = ($FeatureDescription -join ' ').Trim()
1717
# Resolve repository root. Prefer git information when available, but fall back
1818
# to the script location so the workflow still functions in repositories that
1919
# were initialised with --no-git.
20-
$scriptDir = Split-Path -Parent $PSScriptRoot
21-
$fallbackRoot = (Resolve-Path (Join-Path $scriptDir "..")).Path
20+
$fallbackRoot = (Resolve-Path (Join-Path $PSScriptRoot "../..")).Path
2221

2322
try {
2423
$repoRoot = git rev-parse --show-toplevel 2>$null

0 commit comments

Comments
 (0)