From cc999a3a0845fcab83a8dcecd3fcdd86f03c10b6 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 4 Apr 2012 14:25:44 +0200 Subject: 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 a8b5fad..ca6f038 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 "