From: Sebastian Pipping Date: Wed, 4 Apr 2012 12:25:44 +0000 (+0200) Subject: gitweb: Fix unintended "--no-merges" for regular Atom feed X-Git-Tag: v1.7.11-rc0~166 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc999a3a0845fcab83a8dcecd3fcdd86f03c10b6;p=git.git gitweb: Fix unintended "--no-merges" for regular Atom feed The print_feed_meta() subroutine generates links for feeds with and without merges, in RSS and Atom formats. However because %href_params was not properly reset, it generated links with "--no-merges" for all except the very first link. Before: After: Signed-off-by: Sebastian Pipping Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index a8b5fad26..ca6f038c9 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -3886,6 +3886,7 @@ sub print_feed_meta { '-type' => "application/$type+xml" ); + $href_params{'extra_options'} = undef; $href_params{'action'} = $type; $link_attr{'-href'} = href(%href_params); print "