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

Re: [PATCH (BUGFIX)] gitweb: Fix "Use of uninitialized value" error in 'history' view

From
Jakub Narebski <jnareb@gmail.com>
Date
Apr 5, 2008, 17:38 UTC
Message-ID
<200804051938.17855.jnareb@gmail.com>
In-Reply-To
<200804051916.14568.jnareb@gmail.com>
Jakub Narebski wrote:
Show 13 quoted lines
> On Sat, 5 Apr 2008, Gerrit Pape wrote:
>> On Fri, Apr 04, 2008 at 03:23:42PM +0100, Jakub Narebski wrote:
>>
>> Do you know whether this fixes http://bugs.debian.org/469083 too?  I
>> took a short look back then to fix it, but didn't manage it in a
>> reasonable amount of time.
> 
> No it does not.
> 
> 
> I have found what causes this bug. [...]
> I'd send in a bit patch fixing this bug (making is_deleted() more
> robust).

It should be enough to revert commit 6aa6f92 (gitweb: Add 'status_str' to parse_difftree_raw_line output); it should fix this bug.

P.S. Mentioned commit was done for micro-optimization: "<str> =~ /D/" is a bit faster than "<str> eq ('0' x 40)" in the case when it doesn't match.

-- 
Jakub Narebski
Poland
Previous: Jakub NarebskiNext: Jakub Narebski
Message 6 of 8 in “gitweb: Fix "Use of uninitialized value" error in 'history' view”
  1. gitweb: Fix "Use of uninitialized value" error in 'history' viewJakub Narebski, Apr 4, 2008
  2. Junio C HamanoApr 5, 2008
  3. Jakub NarebskiApr 5, 2008
  4. Gerrit PapeApr 5, 2008
  5. Jakub NarebskiApr 5, 2008
  6. Jakub NarebskiApr 5, 2008
  7. Revert "gitweb: Add 'status_str' to parse_difftree_raw_line output"Jakub Narebski, Apr 5, 2008
  8. Gerrit PapeApr 6, 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.