Skip to content

Commit

Permalink
Revert "Fix #33"
Browse files Browse the repository at this point in the history
This reverts commit 0c5bf63.
  • Loading branch information
bserem committed Feb 18, 2025
1 parent 15648dc commit 91a211e
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions scripts/git-hooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,8 @@
COMMIT_PATTERN="^T-[0-9]*"
BRANCH_PATTERN="[0-9]{6}_(T-[0-9]{8})"

# Read and filter the commit message (remove comment lines and empty lines)
commit_message=$(grep -vE '^\s*#' "$1" | sed '/^[[:space:]]*$/d')

# Abort if no commit message is provided
if [[ -z "$commit_message" ]]; then
echo "Error: Commit message cannot be empty."
exit 1
fi

# Abort if no commit message is provided
if [[ -z "$commit_message" ]]; then
echo "Error: Commit message cannot be empty."
exit 1
fi
# Read the commit message
commit_message=$(cat "$1")

# Ignore merge commits
if git rev-parse -q --verify MERGE_HEAD >/dev/null 2>&1; then
Expand Down

0 comments on commit 91a211e

Please sign in to comment.