Skip to content

Commit c7279bc

Browse files
fix: add # to sanitize_branch_name to prevent shebang issues (#44)
1 parent 088ce37 commit c7279bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sanitize_branch_name() {
2424

2525
# Replace slashes, spaces, and other problematic chars with hyphens
2626
# Remove any leading/trailing hyphens
27-
printf "%s" "$branch" | sed -e 's/[\/\\ :*?"<>|]/-/g' -e 's/^-*//' -e 's/-*$//'
27+
printf "%s" "$branch" | sed -e 's/[\/\\ :*?"<>|#]/-/g' -e 's/^-*//' -e 's/-*$//'
2828
}
2929

3030
# Canonicalize a path to its absolute form, resolving symlinks

0 commit comments

Comments
 (0)