Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/git-hub
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ editor-title-body() {
local line
body=''
title="$(head -n1 "$GIT_HUB_MSG_FILE")"
if [[ ! "$title" =~ [^[:space:]] ]]; then
if [[ ! "$title" =~ [^[:space:]] || "$title" =~ ^\# ]]; then
abort "no title provided"
fi
line="$(head -n2 "$GIT_HUB_MSG_FILE" | tail -n1)"
Expand Down