We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ab8e2 commit 96cfebaCopy full SHA for 96cfeba
pkg/argocd/git.go
@@ -212,9 +212,9 @@ func (rw *repoWriter) flushBatch(batch []writeIntent) {
212
func groupIntentsByBranch(batch []writeIntent) map[string][]writeIntent {
213
byBranch := map[string][]writeIntent{}
214
for _, wi := range batch {
215
- branch := getWriteBackBranch(wi.app)
216
- if wi.wbc.GitWriteBranch != "" {
217
- branch = wi.wbc.GitWriteBranch
+ branch := wi.wbc.GitWriteBranch
+ if branch == "" {
+ branch = getWriteBackBranch(wi.app)
218
}
219
byBranch[branch] = append(byBranch[branch], wi)
220
0 commit comments