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 <kaarticsivaraam91196@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Kaartic Sivaraam committed
Aug 14, 2017 at 14:16 UTC
51f5a2b4394c741433f11d54aa3f0ac2c4a647b6
1 file changed
+1
-1
templates/hooks--prepare-commit-msg.sample
+1
-1
@@ -34,7 +34,7 @@ SHA1=$3
34
# *) ;;
35
# esac
36
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')
38
# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"
39
# if test -z "$COMMIT_SOURCE"
40
# then