From: Robert Newson Date: Fri, 31 Aug 2007 15:31:39 GMT Subject: Re: Perl warning in git-svn (git v1.5.3-rc7-16-ge340d7d) Message-ID: <46aeb24f0708310831n3c16dbbeke173b6f0cdfa7792@mail.gmail.com> In-Reply-To: <20070831152153.GA30745@muzzle> The difference between the version I'm using (1.5.2.4) and this broken version shows us what's happened. The $hash value was initialised in the loop, and now it isn't. Running 'git-svn log' in my git-svn'ed repo shows this up every time, it's easy to reproduce. my ($head, $refs) = @_; - my ($fh, $ctx) = command_output_pipe('rev-list', $head); - while (my $hash = <$fh>) { - chomp($hash); - my ($url, $rev, $uuid) = cmt_metadata($hash); + my ($fh, $ctx) = command_output_pipe('log', $head); + my $hash = ""; + my %max; + while (<$fh>) { + if ( m{^commit ($::sha1)$} ) { + unshift @$refs, $hash if $hash and $refs; + $hash = $1; + next; + }