git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitweb: Fix typo in run() subroutine

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 2, 2010, 20:21 UTC
Message-ID
<20100802202047.20307.73672.stgit@localhost.localdomain>

Run $post_dispatch_hook->() not $pre_dispatch_hook->() after each request.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
Probably nobody is using pre/post dispatch (request) hooks anyway...
by default they are no-op (empty).
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index e0e9532..8b02767 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1125,7 +1125,7 @@ sub run {
 
 		run_request();
 
-		$pre_dispatch_hook->()
+		$post_dispatch_hook->()
 			if $post_dispatch_hook;
 
 		last REQUEST if ($is_last_request->());
Message 1 of 1 in “gitweb: Fix typo in run() subroutine”
  1. gitweb: Fix typo in run() subroutineJakub Narebski, Aug 2, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.