summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKaartic Sivaraam <kaarticsivaraam91196@gmail.com>2017-08-14 08:46:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-14 18:19:50 (GMT)
commit51f5a2b4394c741433f11d54aa3f0ac2c4a647b6 (patch)
tree9b46357e6c749ed608a6b3cb33280433a0c4efd2 /templates
parent0ef1a4e32a720928a497a13ef08aa8f0a63dc476 (diff)
downloadgit-51f5a2b4394c741433f11d54aa3f0ac2c4a647b6.zip
git-51f5a2b4394c741433f11d54aa3f0ac2c4a647b6.tar.gz
git-51f5a2b4394c741433f11d54aa3f0ac2c4a647b6.tar.bz2
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>
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/hooks--prepare-commit-msg.sample2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hooks--prepare-commit-msg.sample b/templates/hooks--prepare-commit-msg.sample
index dc707e4..318afe3 100755
--- a/templates/hooks--prepare-commit-msg.sample
+++ b/templates/hooks--prepare-commit-msg.sample
@@ -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