Skip to content

Commit

Permalink
only update changes if from-branch is main. otherwise we have commits…
Browse files Browse the repository at this point in the history
… in history we don't want

Signed-off-by: fhochleitner <felix.hochleitner@outlook.com>
  • Loading branch information
fhochleitner committed Sep 25, 2023
1 parent fcc26ac commit 3bb0e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func deploy(c *model.Config) {
deployPrerequisites(c)

repo := api.CloneRepo(c, c.FromBranch, false)
if !c.ResourcesOnly {
if !c.ResourcesOnly && c.FromBranch != "main" {
wt, err := repo.Worktree()
utils.CheckIfError(err)
api.UpdateAllStages(c, wt, repo)
Expand Down

0 comments on commit 3bb0e9b

Please sign in to comment.