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 f6fcba9 commit d1fe6ac
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion .githooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ CURRENT_MESSAGE=$(cat "$COMMIT_MSG_FILE")
# 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"
# Version 0.6.0 and lower: dotnet-aicommitmessage generate-message -m "$CURRENT_MESSAGE" -b "$GIT_BRANCH_NAME" -d "$GIT_DIFF"

if ! AI_MESSAGE=$(dotnet-aicommitmessage generate-message -m "$CURRENT_MESSAGE" 2>/dev/null); then
echo "Error: Failed to generate AI commit message. Using original message." >&2
Expand Down

0 comments on commit d1fe6ac

Please sign in to comment.