Commit af50794
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 <phil@apcera.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent f07e555 commit af50794
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
544 | | - | |
| 544 | + | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| |||
2697 | 2697 | | |
2698 | 2698 | | |
2699 | 2699 | | |
| 2700 | + | |
2700 | 2701 | | |
| 2702 | + | |
2701 | 2703 | | |
2702 | 2704 | | |
| 2705 | + | |
| 2706 | + | |
2703 | 2707 | | |
2704 | 2708 | | |
2705 | | - | |
2706 | 2709 | | |
2707 | 2710 | | |
2708 | 2711 | | |
| |||
0 commit comments