Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Emma Doyle committed Feb 19, 2023
1 parent 387c744 commit 0903826
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hooks/prepare-git-commit-msg.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#! /usr/bin/env bash
# https://git-scm.com/docs/githooks#_prepare_commit_msg

FILE="$1"
# shellcheck disable=SC2034

COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
SHA1=$3

BRANCH_NAME=$(git symbolic-ref --short HEAD)

sed -i -e "1s/^/$BRANCH_NAME: /" "$FILE"
sed -i -e "1s/^/$BRANCH_NAME: /" "$COMMIT_MSG_FILE"

0 comments on commit 0903826

Please sign in to comment.