summaryrefslogtreecommitdiff
path: root/tests/claude-code/test-executing-plans-scripts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/claude-code/test-executing-plans-scripts.sh')
-rwxr-xr-xtests/claude-code/test-executing-plans-scripts.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/claude-code/test-executing-plans-scripts.sh b/tests/claude-code/test-executing-plans-scripts.sh
index e4e3904..277c947 100755
--- a/tests/claude-code/test-executing-plans-scripts.sh
+++ b/tests/claude-code/test-executing-plans-scripts.sh
@@ -33,8 +33,9 @@ main() {
git init -q -b main "$TEST_ROOT/repo"
local repo
repo="$(cd "$TEST_ROOT/repo" && git rev-parse --show-toplevel)"
- # Same spelling as the scripts print (pwd), not rev-parse's C:/... on Git Bash.
- repo="$(cd "$repo" && pwd)"
+ # Same spelling as the scripts print: C:/... from cygpath -m on Windows,
+ # plain pwd elsewhere.
+ repo="$(cd "$repo" && if command -v cygpath >/dev/null 2>&1; then cygpath -m "$PWD"; else pwd; fi)"
local git_id=(-c user.email=t@example.com -c user.name=t -c commit.gpgsign=false)
cat > "$repo/plan.md" <<'PLAN'