X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=git%2Fcommit-msg;h=b6937ce22ec127c94a3f6219417c124e644041ed;hb=4e204016a1e7c929783865db6a32c69ffdb76e92;hp=73dbc755ec55250d11d82f09fd6a802e269d7a94;hpb=48aea7d129e98f08c43c50e376171ea424f28c1d;p=packetcable.git diff --git a/git/commit-msg b/git/commit-msg index 73dbc75..b6937ce 100755 --- a/git/commit-msg +++ b/git/commit-msg @@ -179,3 +179,6 @@ _gen_ChangeId() { add_ChangeId +SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" +