Skip to content

Commit

Permalink
fix(ui): load version without remote filter if no repository linked
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjjj authored and yesnault committed Nov 28, 2017
1 parent d1d53f5 commit 3a20af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/api/workflowv0/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ func getChild(db gorp.SqlExecutor, parent *sdk.CDPipeline, user *sdk.User, branc
}

func getRemoteOpts(remoteFilter, repoFullName string) pipeline.ExecOptionFunc {
if remoteFilter == "" || (repoFullName != "" && remoteFilter == repoFullName) {
if repoFullName != "" && (remoteFilter == "" || remoteFilter == repoFullName) {
return pipeline.LoadPipelineBuildOpts.WithEmptyRemote(repoFullName)
} else if repoFullName != "" && remoteFilter != "" {
return pipeline.LoadPipelineBuildOpts.WithRemoteName(remoteFilter)
Expand Down

0 comments on commit 3a20af9

Please sign in to comment.