From 36d65b3cfcc9557552314d112493516437d6fcd4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 15 Sep 2015 14:40:18 -0400 Subject: [PATCH] deploy: Do not prune repository To support deploying older commits: ostree pull ostree admin deploy Prior to this, the deploy command garbage collected since there's no ref pointing to it, and then ostree_sysroot_deploy_tree() fails because it can't find the commit. https://bugzilla.gnome.org/732526 --- src/ostree/ot-admin-builtin-deploy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ostree/ot-admin-builtin-deploy.c b/src/ostree/ot-admin-builtin-deploy.c index b054ece4..51de4ee3 100644 --- a/src/ostree/ot-admin-builtin-deploy.c +++ b/src/ostree/ot-admin-builtin-deploy.c @@ -119,7 +119,7 @@ ot_admin_builtin_deploy (int argc, char **argv, GCancellable *cancellable, GErro * TODO: Add /ostree/transaction file, and only do this cleanup if * we find it. */ - if (!ostree_sysroot_cleanup (sysroot, cancellable, error)) + if (!ostree_sysroot_prepare_cleanup (sysroot, cancellable, error)) { g_prefix_error (error, "Performing initial cleanup: "); goto out;