Skip to content

Commit 6b1fe28

Browse files
committed
Test that the Sage git repo is clean.
1 parent dc99dc8 commit 6b1fe28

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/sage/tests/git.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""
2+
Test that the Sage git repo is clean.
3+
4+
sage: from sage.features import Executable
5+
sage: from sage.tests.cmdline import test_executable
6+
sage: if Executable(name='git', executable='git').is_present():
7+
....: (out, err, ret) = test_executable(["git", "status", "--porcelain"])
8+
....: if len(out) > 0:
9+
....: raise OSError('Git repo is not clean')
10+
"""

0 commit comments

Comments
 (0)