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

[PATCH] gitweb: Fix @git_base_url_list usage

From
Petr Baudis <pasky@suse.cz>
Date
Sep 22, 2006, 23:15 UTC
Message-ID
<20060922231518.32050.73077.stgit@rover>
In-Reply-To
<20060920004935.GJ8259@pasky.or.cz>

As it is now, that array was never used because the customurl accessor was broken and ''unless @url_list'' never happenned. ---

 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index f7e7d10..a357604 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -752,7 +752,7 @@ sub git_get_project_description {
 sub git_get_project_url_list {
 	my $path = shift;
 
-	open my $fd, "$projectroot/$path/cloneurl" or return undef;
+	open my $fd, "$projectroot/$path/cloneurl" or return;
 	my @git_project_url_list = map { chomp; $_ } <$fd>;
 	close $fd;
 
Previous: Petr Baudis
Message 5 of 5 in “gitweb: Fix @git_base_url_list usage”
  1. gitweb: Fix @git_base_url_list usagePetr Baudis, Sep 20, 2006
  2. Junio C HamanoSep 20, 2006
  3. Junio C HamanoSep 20, 2006
  4. Petr BaudisSep 20, 2006
  5. gitweb: Fix @git_base_url_list usagePetr Baudis, Sep 22, 2006

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.