From 365db450362a641772f944a7eb29fbf9bdc7fbab Mon Sep 17 00:00:00 2001 From: KazushiMatsuda Date: Sun, 14 Dec 2025 18:19:18 +0900 Subject: [PATCH] fix: add # to sanitize_branch_name to prevent shebang issues # in folder names breaks Python venv shebang lines because shell interprets # as comment start, truncating the path. Closes #43 --- lib/core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.sh b/lib/core.sh index b2bd0f3..28e50f7 100644 --- a/lib/core.sh +++ b/lib/core.sh @@ -24,7 +24,7 @@ sanitize_branch_name() { # Replace slashes, spaces, and other problematic chars with hyphens # Remove any leading/trailing hyphens - printf "%s" "$branch" | sed -e 's/[\/\\ :*?"<>|]/-/g' -e 's/^-*//' -e 's/-*$//' + printf "%s" "$branch" | sed -e 's/[\/\\ :*?"<>|#]/-/g' -e 's/^-*//' -e 's/-*$//' } # Canonicalize a path to its absolute form, resolving symlinks