mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-21 13:01:48 +09:00
Backport #37244 by @JoeGruffins Patterns starting with "/" (e.g. /docs/.*\.md) never matched because git returns relative paths without a leading slash. Strip the leading "/" before compiling the regex since the ^...$ anchoring already provides root-relative semantics. closes #28107 Co-authored-by: JoeGruffins <34998433+JoeGruffins@users.noreply.github.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
15 KiB
15 KiB