aboutsummaryrefslogtreecommitdiff
path: root/builtin-fast-export.c
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2008-02-14 09:22:30 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-19 21:30:44 -0800
commitafa9b620f9432491a453d752e8bf62860d7834c0 (patch)
tree01807957bd400fb1b1cf6b7b602084910acd118c /builtin-fast-export.c
parentf019d08ea6d5ae2f83a4b4eb9211108dfab4a672 (diff)
downloadgit-afa9b620f9432491a453d752e8bf62860d7834c0.tar.gz
git-afa9b620f9432491a453d752e8bf62860d7834c0.tar.xz
gitweb: Fix bug in href(..., -replay=>1) when using 'pathinfo' form
URLs generated by href(..., -replay=>1) (which includes 'next page' links and alternate view links) didn't set project info correctly when current page URL is in pathinfo form. This resulted in broken links such like: http://www.example.com/w/ARRAY(0x85a5318)?a=shortlog;pg=1 if the 'pathinfo' feature was used, or http://www.example.com/w/?a=shortlog;pg=1 if it wasn't, instead of correct: http://www.example.com/w/project.git?a=shortlog;pg=1 This was caused by the fact that href() always replays params in the arrayref form, were they multivalued or singlevalued, and the code dealing with 'pathinfo' feature couldn't deal with $params{'project'} being arrayref. Setting $params{'project'} is moved before replaying params; this ensures that 'project' parameter is processed correctly. Noticed-by: Peter Oberndorfer <kumbayo84@arcor.de> Noticed-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-fast-export.c')
0 files changed, 0 insertions, 0 deletions