]> Lady’s Gitweb - Gitweb/commit
gitweb: make remote_heads config setting work
authorPhil Pennock <redacted>
Mon, 5 Nov 2012 23:50:47 +0000 (18:50 -0500)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:32 +0000 (00:51 -0400)
commit33c38367118ad318dc1570f72395dba4f55f40676c1774fd144899c39644f05e
tree85bd0a559a647b1800deb29fb2ebb0dbcf96073587d50d8d9de14ddef997ed84
parentf3ddf5b87f42b68fad2aebdbbae36f5429051434461615ec57f828442f1c5259
gitweb: make remote_heads config setting work

Git configuration items can not contain underscores in their section
and bottom-level variable name; the 'remote_heads' feature can not
be enabled on a per-repository basis with that name.

This changes the git-config option to be `gitweb.remoteheads` but does
not change the gitweb.conf option, to avoid backwards compatibility
issues.  We strip underscores from keys before looking through
git-config output for them.

An existing check on keynames was overly eager to reject non-word
letters, but if we ever start using three-level names, the middle
level string can contain almost anything, so fix that as well while
we are in the vicinity.

Signed-off-by: Phil Pennock <redacted>
Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.266232 seconds and 4 git commands to generate.