--- a/mercurial/hgweb/hgwebdir_mod.py Mon Aug 03 22:40:05 2020 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py Sat Aug 22 16:03:44 2020 -0700
@@ -413,12 +413,7 @@
else:
fname = req.qsparams[b'static']
static = self.ui.config(b"web", b"static", untrusted=False)
- if not static:
- tp = self.templatepath or templater.templatedir()
- if tp is not None:
- static = os.path.join(tp, b'static')
-
- staticfile(static, fname, res)
+ staticfile(self.templatepath, static, fname, res)
return res.sendresponse()
# top-level index