Skip to content

Commit

Permalink
Add output of git diff when failing (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored May 19, 2022
1 parent f0a5ee0 commit 941d5aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tox_extra/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def is_git_dirty(path: str) -> bool:
repo = git.Repo(os.getcwd())
if repo.is_dirty(untracked_files=True):
os.system("git status")
os.system("git diff -U0 --minimal")
return True
finally:
os.environ.clear()
Expand Down

0 comments on commit 941d5aa

Please sign in to comment.