Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2021-02-16 03:44:50 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-03-18 03:12:30 +0300
commit4e9019261bb583619eadae7275aaafc11a7c95c1 (patch)
tree1d58b15498aa58931d5db4f939dfd07a5c5e90b9
parent59524733e25cb87517bd5fbe4ec0780be8e6a671 (diff)
Do not replace entry when new one failed
-rw-r--r--internal/source/gitlab/cache/entry.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/source/gitlab/cache/entry.go b/internal/source/gitlab/cache/entry.go
index c960be8a..4ea25485 100644
--- a/internal/source/gitlab/cache/entry.go
+++ b/internal/source/gitlab/cache/entry.go
@@ -87,6 +87,10 @@ func (e *Entry) Refresh(client api.Client, store Store) {
entry.Retrieve(context.Background(), client)
+ if entry.response != nil && entry.response.Error != nil {
+ entry.response = e.response
+ }
+
store.ReplaceOrCreate(e.domain, entry)
}()
})