Skip to content

Commit

Permalink
fix: cfbs recognizes and commits module input changes
Browse files Browse the repository at this point in the history
Ticket: ENT-11811
Changelog: None
Signed-off-by: Mikita Pilinka <[email protected]>
  • Loading branch information
mineralsfree committed May 27, 2024
1 parent 5282b8a commit ca202b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cfbs/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ def git_discard_changes_in_file(file_name):

def git_check_tracked_changes(scope=["all"]):
should_commit = False
# git status returns file names without the explicit current directory path, so we need to sync them
scope = [path[2:] if path.startswith("./") else path for path in scope]
try:
result = run(["git", "status", "-s", "-u"], check=True, stdout=PIPE)
if "all" in scope:
Expand Down

0 comments on commit ca202b6

Please sign in to comment.