From 62157f024f000a60824b45863dec54a0b49f13c3 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 13 Apr 2024 17:54:10 -0600 Subject: fixup --- cmd/generate/src_upstreams.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/generate/src_upstreams.go b/cmd/generate/src_upstreams.go index 791df1b..d35711c 100644 --- a/cmd/generate/src_upstreams.go +++ b/cmd/generate/src_upstreams.go @@ -6,6 +6,7 @@ import ( "net/url" "os" "path" + "strings" "sigs.k8s.io/yaml" ) @@ -41,7 +42,7 @@ func (upstream *Upstream) Fill() error { if err != nil { return err } - _, upstream.Name = path.Split(path.Clean(u.Path)) + _, upstream.Name = strings.TrimSuffix(path.Split(path.Clean(u.Path)), ".git") } return nil } -- cgit v1.2.3-54-g00ecf