Skip to content

Commit

Permalink
Update .githooks/prepare-commit-msg.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Oct 26, 2024
1 parent 5002c95 commit 7b2b576
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .githooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ fi
COMMIT_MSG_FILE=$1
CURRENT_MESSAGE=$(cat "$COMMIT_MSG_FILE")

# From version 0.6.1, this is not needed anymore.
# GIT_DIFF=$(git diff --staged)
# GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)

# Run dotnet-aicommitmessage with error handling
# From version 0.6.1 branch and diff are now retrieved by the tool and don't need to be passed manually.
dotnet-aicommitmessage generate-message -m "$CURRENT_MESSAGE"

if ! AI_MESSAGE=$(dotnet-aicommitmessage generate-message -m "$CURRENT_MESSAGE" 2>/dev/null); then
Expand Down

0 comments on commit 7b2b576

Please sign in to comment.