From 68997116268776dd5c050df9cd950da1dc39105f Mon Sep 17 00:00:00 2001 From: Ankit R Gadiya Date: Wed, 15 May 2024 15:50:06 +0530 Subject: [PATCH] fix(configtree): handle project-level trees correctly in commit sub-command --- riocli/configtree/revision.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/riocli/configtree/revision.py b/riocli/configtree/revision.py index d3d983b6..90e7d9aa 100644 --- a/riocli/configtree/revision.py +++ b/riocli/configtree/revision.py @@ -234,9 +234,13 @@ def commit_revision( Commit the existing Revision """ + config = get_config_from_context(ctx) + project_guid = config.project_guid + if with_org: + project_guid = None + if not rev_id: - config = get_config_from_context(ctx) - rev = get_revision_from_state(org_guid=config.organization_guid, project_guid=config.project_guid, + rev = get_revision_from_state(org_guid=config.organization_guid, project_guid=project_guid, tree_name=tree_name) if not rev or rev.committed: spinner.text = click.style(