Skip to content

Commit

Permalink
Update release checking to use app override
Browse files Browse the repository at this point in the history
  • Loading branch information
CGA1123 committed Dec 2, 2021
1 parent a43051c commit 363ebd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd/slugcmplr/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ func releaseCmd(verbose bool) *cobra.Command {
return fmt.Errorf("failed to decode release data: %w", err)
}

if application == "" {
application = r.Application
if application != "" {
r.Application = application
}

log(out, "application: %v", application)
log(out, "application: %v", r.Application)
log(out, "slug: %v", r.Slug)

step(out, "Releasing slug %v to %v", r.Slug, r.Application)

releaseCmd := &slugcmplr.ReleaseCmd{
Heroku: h,
Application: application,
Application: r.Application,
SlugID: r.Slug,
Commit: r.Commit,
}
Expand Down
1 change: 0 additions & 1 deletion shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"io/fs"
"os"
"path/filepath"
"strings"

git "github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
Expand Down

0 comments on commit 363ebd1

Please sign in to comment.