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

Re: git-remote: Use of uninitialized value in string ne, line 248

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 24, 2007, 11:49 UTC
Message-ID
<7vwstc68bk.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071024110807.GA12501@piper.oerlikon.madduck.net>
martin f krafft <madduck@madduck.net> writes:
Show 5 quoted lines
> piper:~> git remote show origin
> * remote origin
>   URL: ssh://git.madduck.net/~/git/etc/mailplate.git
> Use of uninitialized value in string ne at /usr/local/stow/git/bin/git-remote line 248.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Perhaps....
 git-remote.perl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-remote.perl b/git-remote.perl
index 9ca3e7e..4cee044 100755
--- a/git-remote.perl
+++ b/git-remote.perl
@@ -244,7 +244,8 @@ sub show_remote {
 	print "* remote $name\n";
 	print "  URL: $info->{'URL'}\n";
 	for my $branchname (sort keys %$branch) {
-		next if ($branch->{$branchname}{'REMOTE'} ne $name);
+		next if (!$branch->{$branchname}{'REMOTE'} ||
+			 $branch->{$branchname}{'REMOTE'} ne $name);
 		my @merged = map {
 			s|^refs/heads/||;
 			$_;
Previous: martin f krafftNext: martin f krafft
Message 2 of 8 in “git-remote: Use of uninitialized value in string ne, line 248”
  1. martin f krafftOct 24, 2007
  2. Junio C HamanoOct 24, 2007
  3. martin f krafftOct 24, 2007
  4. Alex RiesenOct 24, 2007
  5. martin f krafftOct 24, 2007
  6. Ralf WildenhuesOct 24, 2007
  7. Junio C HamanoOct 25, 2007
  8. Pierre HabouzitOct 24, 2007

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.