Merge branch 'maint'
[gitweb.git] / git-remote.perl
index 52013fe76dba73e19244fadf63f91677ce8e6a40..576379912793c9740620892cd3ee1cf7d2f18cfe 100755 (executable)
@@ -297,9 +297,9 @@ sub update_remote {
        } elsif ($name eq 'default') {
                undef @remotes;
                for (sort keys %$remote) {
-                       my $do_fetch = $git->config_boolean("remote." . $_ .
+                       my $do_fetch = $git->config_bool("remote." . $_ .
                                                    ".skipDefaultUpdate");
-                       if (!defined($do_fetch) || $do_fetch ne "true") {
+                       unless ($do_fetch) {
                                push @remotes, $_;
                        }
                }