]> Lady’s Gitweb - Gitweb/commit
gitweb: Fix setting $/ in parse_commit()
authorPetr Baudis <redacted>
Tue, 24 Oct 2006 00:39:14 +0000 (02:39 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
commit9b4ada02e6d2bea72f333721f7c45c19eda129b9d492f46108bb0cbac2e9a03c
treee40d7c5d666098aab12f340fed2c15d837904fe2033f0d46cee84548749f3c8d
parentb78d0bc0f157eb6f9831fd160fb813a745da376de40724ef48f6c40441131a2d
gitweb: Fix setting $/ in parse_commit()

If the commit couldn't have been read, $/ wasn't restored to \n properly,
causing random havoc like git_get_ref_list() returning the ref names with
trailing \n.

Aside of potential confusion in the body of git_search(), no other $/
surprises are hopefully hidden in the code.

Signed-off-by: Petr Baudis <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.191451 seconds and 4 git commands to generate.