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

Re: [PATCH] gitweb: Make use of the $git_dir variable at sub git_get_project_url_list

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 6, 2008, 19:37 UTC
Message-ID
<m3ve51511t.fsf@localhost.localdomain>
In-Reply-To
<1202318112-8223-1-git-send-email-ribas@c3sl.ufpr.br>
Bruno Ribas <ribas@c3sl.ufpr.br> writes:
Show 9 quoted lines
> @@ -1620,7 +1620,7 @@ sub git_get_project_url_list {
>  	my $path = shift;
>  
>  	$git_dir = "$projectroot/$path";
> -	open my $fd, "$projectroot/$path/cloneurl"
> +	open my $fd, "$git_dir/cloneurl"
>  		or return wantarray ?
>  		@{ config_to_multi(git_get_project_config('url')) } :
>  		   config_to_multi(git_get_project_config('url'));
Good catch (although it wasn't actually a bug).
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Bruno RibasNext: Bruno Cesar Ribas
Message 2 of 6 in “gitweb: Make use of the $git_dir variable at sub git_get_project_url_list”
  1. gitweb: Make use of the $git_dir variable at sub git_get_project_url_listBruno Ribas, Feb 6, 2008
  2. Jakub NarebskiFeb 6, 2008
  3. Bruno Cesar RibasFeb 8, 2008
  4. Junio C HamanoFeb 8, 2008
  5. Jakub NarebskiFeb 8, 2008
  6. Bruno Cesar RibasFeb 10, 2008

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.