jonashaag / klaus

docker run klaus / pip install klaus — the first Git web viewer that Just Works™.
http://klausdemo.lophus.org
Other
685 stars 101 forks source link

Support glob patterns for KLAUS_REPOS{,_ROOT} #242

Open jonashaag opened 5 years ago

jonashaag commented 5 years ago

We already use glob to find files in KLAUS_REPOS{,_ROOT}. Add a KLAUS_REPOS{,_ROOT}_PATTERN variable that is an alternative to the variable without _PATTERN that allows to specify a glob pattern. Or maybe we can do with a single variable and some heuristic to decide if the user has given a glob pattern or a static path