diff --git a/src/libostree/ostree-sysroot-upgrader.c b/src/libostree/ostree-sysroot-upgrader.c index 3d656416..b95c448d 100644 --- a/src/libostree/ostree-sysroot-upgrader.c +++ b/src/libostree/ostree-sysroot-upgrader.c @@ -447,10 +447,13 @@ ostree_sysroot_upgrader_pull (OstreeSysrootUpgrader *self, error)) goto out; - if (!ostree_repo_pull (repo, self->origin_remote, refs_to_fetch, - flags, progress, - cancellable, error)) - goto out; + if (self->origin_remote) + { + if (!ostree_repo_pull (repo, self->origin_remote, refs_to_fetch, + flags, progress, + cancellable, error)) + goto out; + } if (!ostree_repo_resolve_rev (repo, origin_refspec, FALSE, &self->new_revision, error))