Skip to content

Commit

Permalink
fix(configtree): handle project-level trees correctly in commit sub-c…
Browse files Browse the repository at this point in the history
…ommand
  • Loading branch information
ankitrgadiya committed May 15, 2024
1 parent 29d4ae4 commit 6899711
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions riocli/configtree/revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6899711

Please sign in to comment.