diff mercurial/hgweb/hgwebdir_mod.py @ 34250:d24816dfdcff

configitems: register the 'web.prefix' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:45:49 +0200
parents 344fd1fe237b
children fe5202bef5ce
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Fri Jun 30 03:45:48 2017 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Fri Jun 30 03:45:49 2017 +0200
@@ -177,7 +177,7 @@
         if self.stripecount:
             self.stripecount = int(self.stripecount)
         self._baseurl = self.ui.config('web', 'baseurl')
-        prefix = self.ui.config('web', 'prefix', '')
+        prefix = self.ui.config('web', 'prefix')
         if prefix.startswith('/'):
             prefix = prefix[1:]
         if prefix.endswith('/'):