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(