all repos — legit @ 68f08e38aada8d5e8f89679121beef9104430942

web frontend for git, written in go

git: fix getDisplayName
Anirudh Oppiliappan x@icyphox.sh
Fri, 05 Jul 2024 19:56:24 +0300
commit

68f08e38aada8d5e8f89679121beef9104430942

parent

72a658a30f52caf140a555a14c8704448849be97

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

jump to
M routes/util.goroutes/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) {