Code

Fix grammar nits in documentation and in code comments.
[git.git] / git-remote.perl
index 9ca3e7ef3792260e98d68e1a95a2ccfceeac5c55..d13e4c1fea93f0c345f6638bfd8a3715c73fa693 100755 (executable)
@@ -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 unless (defined $branch->{$branchname}{'REMOTE'} &&
+                            $branch->{$branchname}{'REMOTE'} eq $name);
                my @merged = map {
                        s|^refs/heads/||;
                        $_;