Skip to content

Commit 944c669

Browse files
committed
fix: quote filename arguments to support paths with spaces
- Quote the filename argument in the codegpt commit command to handle paths with spaces Signed-off-by: appleboy <[email protected]>
1 parent db740da commit 944c669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/templates/prepare-commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22

33
if [[ "$2" != "message" && "$2" != "commit" ]]; then
4-
codegpt commit --file $1 --preview --no_confirm
4+
codegpt commit --file "$1" --preview --no_confirm
55
fi

0 commit comments

Comments
 (0)