From 3f67cf2f5fef285824b5d1d015d2d094960aa434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Den=20Delimarsky=20=F0=9F=8C=BA?= <53200638+localden@users.noreply.github.com> Date: Sat, 20 Sep 2025 12:26:57 -0700 Subject: [PATCH] Fix script path --- scripts/powershell/common.ps1 | 3 +-- scripts/powershell/create-new-feature.ps1 | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/powershell/common.ps1 b/scripts/powershell/common.ps1 index fe7be7b..a8d4750 100644 --- a/scripts/powershell/common.ps1 +++ b/scripts/powershell/common.ps1 @@ -12,8 +12,7 @@ function Get-RepoRoot { } # Fall back to script location for non-git repos - $scriptDir = Split-Path -Parent $PSScriptRoot - return (Resolve-Path (Join-Path $scriptDir "..")).Path + return (Resolve-Path (Join-Path $PSScriptRoot "../..")).Path } function Get-CurrentBranch { diff --git a/scripts/powershell/create-new-feature.ps1 b/scripts/powershell/create-new-feature.ps1 index 7e1a98c..997c6e8 100644 --- a/scripts/powershell/create-new-feature.ps1 +++ b/scripts/powershell/create-new-feature.ps1 @@ -17,8 +17,7 @@ $featureDesc = ($FeatureDescription -join ' ').Trim() # Resolve repository root. Prefer git information when available, but fall back # to the script location so the workflow still functions in repositories that # were initialised with --no-git. -$scriptDir = Split-Path -Parent $PSScriptRoot -$fallbackRoot = (Resolve-Path (Join-Path $scriptDir "..")).Path +$fallbackRoot = (Resolve-Path (Join-Path $PSScriptRoot "../..")).Path try { $repoRoot = git rev-parse --show-toplevel 2>$null