Skip to content

Commit

Permalink
Merge branch 'tz/credential-netrc'
Browse files Browse the repository at this point in the history
* tz/credential-netrc:
  git-credential-netrc: fix uninitialized warning
  • Loading branch information
Jonathan Nieder committed Oct 8, 2013
2 parents 0079d6e + 506524a commit 1e15535
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/credential/netrc/git-credential-netrc
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ sub find_netrc_entry {
{
my $entry_text = join ', ', map { "$_=$entry->{$_}" } keys %$entry;
foreach my $check (sort keys %$query) {
if (defined $query->{$check}) {
if (!defined $entry->{$check}) {
log_debug("OK: entry has no $check token, so any value satisfies check $check");
} elsif (defined $query->{$check}) {
log_debug("compare %s [%s] to [%s] (entry: %s)",
$check,
$entry->{$check},
Expand Down

0 comments on commit 1e15535

Please sign in to comment.