From f95153a7c9ba175a5c11e8a562d026422d115fbd Mon Sep 17 00:00:00 2001 From: Thomas Berger Date: Sat, 25 Jul 2026 01:48:55 +0200 Subject: [PATCH] api: fix snasphot-pull in the API, snapshotPull never finished reading the target repository within the async block. So the target was treated as an empty snapshot, and a pull would only carry over the content from the sources --- api/snapshot.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/snapshot.go b/api/snapshot.go index 7b6422f04..c99077404 100644 --- a/api/snapshot.go +++ b/api/snapshot.go @@ -800,6 +800,10 @@ func apiSnapshotsPull(c *gin.Context) { if err != nil { return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, err } + err = taskCollectionFactory.SnapshotCollection().LoadComplete(freshToSnapshot) + if err != nil { + return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, err + } freshSourceSnapshot, err := taskCollectionFactory.SnapshotCollection().ByName(body.Source) if err != nil { return &task.ProcessReturnValue{Code: http.StatusInternalServerError, Value: nil}, err