Skip to content

Commit

Permalink
Check untracked files on start
Browse files Browse the repository at this point in the history
This avoids issues when 'oca-port' tries to commit changes.
  • Loading branch information
sebalix committed Oct 11, 2022
1 parent 20b6050 commit 5b63a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oca_port/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def main(
order to push the resulting branch on the user's remote.
"""
repo = git.Repo()
if repo.is_dirty():
if repo.is_dirty(untracked_files=True):
raise click.ClickException("changes not committed detected in this repository.")
repo_name = repo_name or os.path.basename(os.getcwd())
if not user_org:
Expand Down

0 comments on commit 5b63a2e

Please sign in to comment.