From 91deabe4b322a68f551a829d9650ee8bb74b38e3 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 27 Nov 2019 13:03:17 +0100 Subject: [PATCH] submitqueue.Run: copy series into result object after loading them from gerrit So we have them in the history later. --- submitqueue/submitqueue.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/submitqueue/submitqueue.go b/submitqueue/submitqueue.go index 8386f555e..97523153b 100644 --- a/submitqueue/submitqueue.go +++ b/submitqueue/submitqueue.go @@ -214,6 +214,12 @@ func (s *SubmitQueue) Run(fetchOnly bool) *Result { r.Error = err return r } + + // copy series to result object + for _, serie := range s.Series { + r.Series = append(r.Series, *serie) + } + if len(s.Series) == 0 { // Nothing to do! log.Warn("Nothing to do here")