summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-13 17:54:10 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-04-13 17:54:10 -0600
commit62157f024f000a60824b45863dec54a0b49f13c3 (patch)
treed6ef209afe34a6d2b6e2d8de891fff34690aefe4 /cmd
parent95ebab0baff6fc94ed6214b9603df9c552228b31 (diff)
fixup
Diffstat (limited to 'cmd')
-rw-r--r--cmd/generate/src_upstreams.go3
1 files changed, 2 insertions, 1 deletions
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
}