X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/2be815bf7c4f96194aa9dfeb007aceb67e1e69eeeee2608835d520580d9d1178..7cf3180175bceea9dfbb8082c40a28dbeeb234c05e82e2e26ce62453c38705bb:/gitweb.perl?ds=sidebyside diff --git a/gitweb.perl b/gitweb.perl index 64c7d54..6503bd0 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -3430,6 +3430,7 @@ sub git_log { } sub git_commit { + $hash ||= $hash_base || "HEAD"; my %co = parse_commit($hash); if (!%co) { die_error(undef, "Unknown commit object"); @@ -3707,6 +3708,7 @@ sub git_blobdiff_plain { sub git_commitdiff { my $format = shift || 'html'; + $hash ||= $hash_base || "HEAD"; my %co = parse_commit($hash); if (!%co) { die_error(undef, "Unknown commit object");