File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2222# to the script location so the workflow still functions in repositories that
2323# were initialised with --no-git.
2424SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
25- FALLBACK_ROOT=" $( cd " $SCRIPT_DIR /../.." && pwd) "
25+ FALLBACK_ROOT=" $( cd " $SCRIPT_DIR /../../.. " && pwd) "
2626if git rev-parse --show-toplevel > /dev/null 2>&1 ; then
2727 REPO_ROOT=$( git rev-parse --show-toplevel)
2828 HAS_GIT=true
Original file line number Diff line number Diff 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
1818function Get-CurrentBranch {
Original file line number Diff line number Diff 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
2222try {
2323 $repoRoot = git rev- parse -- show-toplevel 2> $null
You can’t perform that action at this time.
0 commit comments