Skip to content

Commit 941d5aa

Browse files
authored
Add output of git diff when failing (#46)
1 parent f0a5ee0 commit 941d5aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tox_extra/hooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ def is_git_dirty(path: str) -> bool:
1919
repo = git.Repo(os.getcwd())
2020
if repo.is_dirty(untracked_files=True):
2121
os.system("git status")
22+
os.system("git diff -U0 --minimal")
2223
return True
2324
finally:
2425
os.environ.clear()

0 commit comments

Comments
 (0)