Skip to content

Commit

Permalink
Merge pull request #94 from xuzhu-591/fix-miss-subfolder
Browse files Browse the repository at this point in the history
fix: miss subfolder
  • Loading branch information
xuzhu-591 authored Mar 20, 2023
2 parents c40f5f1 + bcc62a4 commit 3de3aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/controller/cluster/models_basic_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *CreateClusterRequestV2) toClusterModel(application *appmodels.Applicati
return r.Git.URL
}(),
GitSubfolder: func() string {
if r.Git == nil {
if r.Git == nil || r.Git.Subfolder == "" {
return application.GitSubfolder
}
return r.Git.Subfolder
Expand Down

0 comments on commit 3de3aec

Please sign in to comment.