Skip to content

Commit 1963d11

Browse files
committed
"Truncate long commit message if over 72 chars"
1 parent c7a3429 commit 1963d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-commit-push-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [ -z "$COMMIT_MSG" ]; then
3333
fi
3434

3535
# Clean up commit message formatting - remove #, ```, period . at the end of response
36-
commit_message=$(echo "$COMMIT_MSG" | sed 's/#//g' | sed 's/```//g' | sed 's/Commit message title://g' | sed 's/Commit message summary://g' | sed 's/\.//g' | head -n 1)
36+
commit_message=$(echo $COMMIT_MSG | sed 's/#//g' | sed 's/```//g' | sed 's/Commit message title://g' | sed 's/Commit message summary://g' | sed 's/\.//g' | head -n 1)
3737

3838
# If the commit message is longer than 72 characters, truncate it at word boundary
3939
if [ ${#commit_message} -gt 72 ]; then

0 commit comments

Comments
 (0)