Skip to content

Commit 2d242b4

Browse files
committed
Update config
1 parent 3f67cf2 commit 2d242b4

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/bash/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ get_repo_root() {
88
else
99
# Fall back to script location for non-git repos
1010
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
11-
cd "$script_dir/../.." && pwd
11+
cd "$script_dir/../../.." && pwd
1212
fi
1313
}
1414

scripts/bash/create-new-feature.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fi
2222
# to the script location so the workflow still functions in repositories that
2323
# were initialised with --no-git.
2424
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
25-
FALLBACK_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
25+
FALLBACK_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
2626
if git rev-parse --show-toplevel >/dev/null 2>&1; then
2727
REPO_ROOT=$(git rev-parse --show-toplevel)
2828
HAS_GIT=true

scripts/powershell/common.ps1

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

1414
# Fall back to script location for non-git repos
15-
return (Resolve-Path (Join-Path $PSScriptRoot "../..")).Path
15+
return (Resolve-Path (Join-Path $PSScriptRoot "../../..")).Path
1616
}
1717

1818
function Get-CurrentBranch {

scripts/powershell/create-new-feature.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +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-
$fallbackRoot = (Resolve-Path (Join-Path $PSScriptRoot "../..")).Path
20+
$fallbackRoot = (Resolve-Path (Join-Path $PSScriptRoot "../../..")).Path
2121

2222
try {
2323
$repoRoot = git rev-parse --show-toplevel 2>$null

0 commit comments

Comments
 (0)