Skip to content

Commit

Permalink
fix(directives): propagate origin for git-clone if set (akuity#2542)
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
  • Loading branch information
hiddeco authored Sep 18, 2024
1 parent 1227caf commit fbd3953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/directives/git_clone_directive.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ func (g *gitCloneDirective) run(
}
case checkout.FromFreight:
var desiredOrigin *kargoapi.FreightOrigin
if checkout.FromOrigin == nil {
if checkout.FromOrigin != nil {
desiredOrigin = &kargoapi.FreightOrigin{
Kind: kargoapi.FreightOriginKind(checkout.FromOrigin.Kind),
Name: checkout.FromOrigin.Name,
}
}
var commit *kargoapi.GitCommit
Expand Down

0 comments on commit fbd3953

Please sign in to comment.