Fix git-format-patch -s to include a Signed-off-by: line...
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 25 Jan 2006 20:03:41 +0000 (13:03 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 25 Jan 2006 23:10:35 +0000 (15:10 -0800)
In the last round of bug fixes the signed-off-by line was still be
generated but it was not including a signed-off-by line :(

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-format-patch.sh

index 7e67c4e..5fb8ce1 100755 (executable)
@@ -178,7 +178,7 @@ my ($signoff_pattern, $done_header, $done_subject, $signoff_seen,
     $last_was_signoff);
 
 if ($signoff) {
-       $signoff = `git-var GIT_COMMITTER_IDENT`;
+       $signoff = "Signed-off-by: " . `git-var GIT_COMMITTER_IDENT`;
        $signoff =~ s/>.*/>/;
        $signoff_pattern = quotemeta($signoff);
 }