Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/31347/head
Benoit Tigeot 4 months ago
parent 7f5bb43bef
commit 6be37b2f8f
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -42,8 +42,8 @@ func BuildPushRef(href, chartName, chartVersion string) (string, error) {
// Ensure repository ends with the chart name once (avoid duplication)
finalRepo := ref.Repository
if chartName != "" {
last := chartName
// Extract last segment of current repository path
var last string
if idx := strings.LastIndex(finalRepo, "/"); idx >= 0 {
last = finalRepo[idx+1:]
} else {

Loading…
Cancel
Save