Skip to content

Commit 51f5a2b

Browse files
Kaartic Sivaraamgitster
authored andcommitted
hook: use correct logical variable
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]>
1 parent 0ef1a4e commit 51f5a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/hooks--prepare-commit-msg.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SHA1=$3
3434
# *) ;;
3535
# esac
3636

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

0 commit comments

Comments
 (0)