summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libostree/ostree-repo-refs.c')
-rw-r--r--src/libostree/ostree-repo-refs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-refs.c b/src/libostree/ostree-repo-refs.c
index 2600cb7c..83d11c1b 100644
--- a/src/libostree/ostree-repo-refs.c
+++ b/src/libostree/ostree-repo-refs.c
@@ -1144,6 +1144,11 @@ _ostree_repo_write_ref (OstreeRepo *self,
if (!_ostree_repo_update_mtime (self, error))
return FALSE;
+ /* Update the summary after updating the mtime so the summary doesn't look
+ * out of date */
+ if (!self->in_transaction && !_ostree_repo_maybe_regenerate_summary (self, cancellable, error))
+ return FALSE;
+
return TRUE;
}