about summary refs log tree commit diff
path: root/submitqueue
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-11-27T12·03+0100
committerFlorian Klink <flokli@flokli.de>2019-11-27T12·03+0100
commit91deabe4b322a68f551a829d9650ee8bb74b38e3 (patch)
treea56745cb91b12a86d1de8851f22d8aff134c2027 /submitqueue
parent87d09f616399fbe290ac466f283accad49df32f8 (diff)
submitqueue.Run: copy series into result object after loading them from gerrit
So we have them in the history later.
Diffstat (limited to 'submitqueue')
-rw-r--r--submitqueue/submitqueue.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/submitqueue/submitqueue.go b/submitqueue/submitqueue.go
index 8386f555e778..97523153ba1d 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")