Merge pull request #1039 from sgillis/fix-cdpath-issue

Unset CDPATH while getting SCRIPT_DIR
This commit is contained in:
Den Delimarsky
2025-11-14 16:39:09 -08:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -167,7 +167,7 @@ clean_branch_name() {
# Resolve repository root. Prefer git information when available, but fall back
# to searching for repository markers so the workflow still functions in repositories that
# were initialised with --no-git.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SCRIPT_DIR="$(CDPATH="" cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if git rev-parse --show-toplevel >/dev/null 2>&1; then
REPO_ROOT=$(git rev-parse --show-toplevel)