git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH] Changed gitweb.remote_heads config key name to gitweb.remoteHeads.
@ 2011-07-07 18:02 Marc Branchaud
  2011-07-07 18:56 ` Jakub Narebski
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Branchaud @ 2011-07-07 18:02 UTC (permalink / raw)
  To: git; +Cc: Giuseppe Bilotta, Jakub Narebski

Git doesn't accept config key names with underscore characters.

Signed-off-by: Marc Branchaud <marcnarc@xiplink.com>
---

Came across this today.  The patch is RFC because I have not verified 
if it's complete or if gitweb even respects the setting.

 gitweb/gitweb.perl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 81dacf2..edbb080 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -524,9 +524,9 @@ our %feature = (
 	# $feature{'remote_heads'}{'default'} = [1];
 	# To have project specific config enable override in $GITWEB_CONFIG
 	# $feature{'remote_heads'}{'override'} = 1;
-	# and in project config gitweb.remote_heads = 0|1;
+	# and in project config gitweb.remoteHeads = 0|1;
 	'remote_heads' => {
-		'sub' => sub { feature_bool('remote_heads', @_) },
+		'sub' => sub { feature_bool('remoteHeads', @_) },
 		'override' => 0,
 		'default' => [0]},
 );
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-07 20:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 18:02 [RFC/PATCH] Changed gitweb.remote_heads config key name to gitweb.remoteHeads Marc Branchaud
2011-07-07 18:56 ` Jakub Narebski
2011-07-07 20:36   ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).