Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] gitweb: fix uninitialized variable warning.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:40

Martin Waitz [off-list ref] writes:
quoted hunk
@@ -2436,7 +2432,11 @@ sub git_blob {
 		} else {
 			die_error(undef, "No file name defined");
 		}
+	} elsif ($hash =~ m/^[0-9a-fA-F]{40}$/) {
+		# blobs defined by non-textual hash id's can be cached
+		$expires = "+1d";
 	}
+
 	my $have_blame = gitweb_check_feature('blame');
 	open my $fd, "-|", git_cmd(), "cat-file", "blob", $hash
 		or die_error(undef, "Couldn't cat $file_name, $hash");
Will apply, but you seem to be out of sync.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help