Skip to content

Commit 89428ea

Browse files
committed
Fix commit label dropped when no other labels set
When a.Label is nil and a commit is detected, labels is reassigned to a new map but opts.Labels was set to a.Label (still nil). Use labels instead so the commit label is included in both the nil and non-nil a.Label cases.
1 parent dba595c commit 89428ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/cmd/cli/apply.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (a *Apply) run(cmd *cobra.Command, args []string) error {
116116
Output: writer.NewDefaultNone(a.Output),
117117
Compress: a.Compress,
118118
ServiceAccount: a.ServiceAccount,
119-
Labels: a.Label,
119+
Labels: labels,
120120
TargetsFile: a.TargetsFile,
121121
TargetNamespace: a.TargetNamespace,
122122
Paused: a.Paused,

0 commit comments

Comments
 (0)