Skip to content

Commit

Permalink
Update _git.py
Browse files Browse the repository at this point in the history
changed git status response empty check when making commit.
changed green icon dot to info if nothing to commit
  • Loading branch information
hurtn authored Dec 12, 2024
1 parent 49669cc commit a8b3954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sempy_labs/_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def commit_to_git(
workspace, workspace_id = resolve_workspace_name_and_id(workspace)

gs = get_git_status(workspace=workspace)
if len(gs.index) > 0:
if not gs.empty:
workspace_head = gs["Workspace Head"].iloc[0]

if item_ids is None:
Expand Down Expand Up @@ -318,7 +318,7 @@ def commit_to_git(
)
else:
print(
f"{icons.green_dot} Git already up to date: no modified items found within the '{workspace}' workspace."
f"{icons.info} Git already up to date: no modified items found within the '{workspace}' workspace."
)


Expand Down

0 comments on commit a8b3954

Please sign in to comment.