From 79932e72257efe2ea525d546b32b3ecd3988605b Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Mon, 29 Aug 2022 11:47:37 +0200 Subject: release: Fix the Deb archives Fixes #10220 --- releaser/releaser.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'releaser') diff --git a/releaser/releaser.go b/releaser/releaser.go index fc16a2572..afb5079a1 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -40,14 +40,17 @@ func New(skipPush, try bool, step int) (*ReleaseHandler, error) { if err != nil { return nil, err } + branch = strings.TrimSpace(branch) + if !strings.HasPrefix(branch, prefix) { return nil, fmt.Errorf("branch %q is not a release branch", branch) } - logf("Branch: %s\n", branch) - version := strings.TrimPrefix(branch, prefix) version = strings.TrimPrefix(version, "v") + + logf("Branch: %s|Version: v%s\n", branch, version) + rh := &ReleaseHandler{branchVersion: version, skipPush: skipPush, try: try, step: step} if try { -- cgit v1.2.3