diff options
author | Florian Klink <flokli@flokli.de> | 2019-11-27T12·03+0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-11-27T12·03+0100 |
commit | 91deabe4b322a68f551a829d9650ee8bb74b38e3 (patch) | |
tree | a56745cb91b12a86d1de8851f22d8aff134c2027 /submitqueue | |
parent | 87d09f616399fbe290ac466f283accad49df32f8 (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.go | 6 |
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") |