File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
from tox_extra .bindep import check_bindep
15
15
16
16
MSG_GIT_DIRTY = (
17
- "Git reported dirty status. "
18
- "Git should never report dirty status at the end of "
19
- "testing, regardless if status is passed, failed or aborted ."
17
+ "exit code 1 due to 'git status -s' reporting dirty . "
18
+ "That should not happen regardless if status is passed, failed or aborted. "
19
+ "Modify .gitignore file to avoid this ."
20
20
)
21
21
22
22
@@ -27,7 +27,7 @@ def is_git_dirty(path: str) -> bool:
27
27
try :
28
28
repo = git .Repo (os .getcwd ())
29
29
if repo .is_dirty (untracked_files = True ):
30
- os .system ("git status" )
30
+ os .system ("git status -s " )
31
31
# We want to display long diff only on non-interactive shells,
32
32
# like CI/CD pipelines because on local shell, the user can
33
33
# decide to run it himself if the status line was not enogh.
You can’t perform that action at this time.
0 commit comments