git: fix getDisplayName
Anirudh Oppiliappan x@icyphox.sh
Fri, 05 Jul 2024 19:56:24 +0300
1 files changed,
1 insertions(+),
5 deletions(-)
jump to
M
routes/util.go
→
routes/util.go
@@ -17,11 +17,7 @@ return err == nil
} func getDisplayName(name string) string { - l := len(name) - 4 - if name[l:] == ".git" { - name = name[:l] - } - return name + return strings.TrimSuffix(name, ".git") } func getDescription(path string) (desc string) {