From 2d242b47324ab223d75281f87c45602eb1af6621 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 13:57:05 -0700 Subject: [PATCH] Update config --- scripts/bash/common.sh | 2 +- scripts/bash/create-new-feature.sh | 2 +- scripts/powershell/common.ps1 | 2 +- scripts/powershell/create-new-feature.ps1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/bash/common.sh b/scripts/bash/common.sh index 92b00a8..f0847fd 100644 --- a/scripts/bash/common.sh +++ b/scripts/bash/common.sh @@ -8,7 +8,7 @@ get_repo_root() { else # Fall back to script location for non-git repos local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" - cd "$script_dir/../.." && pwd + cd "$script_dir/../../.." && pwd fi } diff --git a/scripts/bash/create-new-feature.sh b/scripts/bash/create-new-feature.sh index 321636a..0c3de61 100644 --- a/scripts/bash/create-new-feature.sh +++ b/scripts/bash/create-new-feature.sh @@ -22,7 +22,7 @@ fi # to the script location so the workflow still functions in repositories that # were initialised with --no-git. SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -FALLBACK_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" +FALLBACK_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)" if git rev-parse --show-toplevel >/dev/null 2>&1; then REPO_ROOT=$(git rev-parse --show-toplevel) HAS_GIT=true diff --git a/scripts/powershell/common.ps1 b/scripts/powershell/common.ps1 index a8d4750..fa51fe2 100644 --- a/scripts/powershell/common.ps1 +++ b/scripts/powershell/common.ps1 @@ -12,7 +12,7 @@ function Get-RepoRoot { } # Fall back to script location for non-git repos - return (Resolve-Path (Join-Path $PSScriptRoot "../..")).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 997c6e8..6c71123 100644 --- a/scripts/powershell/create-new-feature.ps1 +++ b/scripts/powershell/create-new-feature.ps1 @@ -17,7 +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. -$fallbackRoot = (Resolve-Path (Join-Path $PSScriptRoot "../..")).Path +$fallbackRoot = (Resolve-Path (Join-Path $PSScriptRoot "../../..")).Path try { $repoRoot = git rev-parse --show-toplevel 2>$null