Skip to content

Commit

Permalink
hook: use correct logical variable
Browse files Browse the repository at this point in the history
Sign-off added should be that of the "committer", not that of the
"commit's author"; that is how the rest of Git adds sign-off using
sequencer.c::append_signoff().

Use the correct logical variable that identifies the committer.

Signed-off-by: Kaartic Sivaraam <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Kaartic Sivaraam authored and gitster committed Aug 14, 2017
1 parent 0ef1a4e commit 51f5a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/hooks--prepare-commit-msg.sample
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SHA1=$3
# *) ;;
# esac

# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"
# if test -z "$COMMIT_SOURCE"
# then
Expand Down

0 comments on commit 51f5a2b

Please sign in to comment.