Revert "Added code to recognize signatures (untested)"
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Mon, 10 Oct 2016 19:53:14 +0000 (21:53 +0200)
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Mon, 10 Oct 2016 19:53:14 +0000 (21:53 +0200)
This reverts commit 812f6fcfad44ba112e9b364ac402045ca7940cc5.

gitweb.cgi

index 91cedcf..b8de05c 100755 (executable)
@@ -3445,10 +3445,7 @@ sub parse_commit_text {
 
        my $header = shift @commit_lines;
        if ($header !~ m/^[0-9a-fA-F]{40}/) {
-         return;
-       }
-       if ($committext =~ m/(-----BEGIN PGP SIGNATURE-----.*-----END PGP SIGNATURE-----)/m ) {
-         $co{'sig'} = $1;
+               return;
        }
        ($co{'id'}, my @parents) = split ' ', $header;
        while (my $line = shift @commit_lines) {
@@ -3477,6 +3474,7 @@ sub parse_commit_text {
                        } else {
                                $co{'committer_name'} = $co{'committer'};
                        }
+               }
        }
        if (!defined $co{'tree'}) {
                return;