all repos — elgit @ 72a658a30f52caf140a555a14c8704448849be97

fork of legit: web frontend for git, written in go

routes: ignore files
Anirudh Oppiliappan x@icyphox.sh
Fri, 05 Jul 2024 19:49:50 +0300
commit

72a658a30f52caf140a555a14c8704448849be97

parent

68184129028fc75defdcb7b4b4b55b93e2aa7cca

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M routes/routes.goroutes/routes.go
@@ -40,7 +40,7 @@ 	infos := []info{}
 
 	for _, dir := range dirs {
-		if d.isIgnored(dir.Name()) {
+		if !dir.IsDir() || d.isIgnored(dir.Name()) {
 			continue
 		}