source:
trunk/misc/build_helpers/test-git-ignore.py
Last change on this file was ae5e282, checked in by heartsucker <heartsucker@…>, at 2019-04-05T09:39:10Z | |
---|---|
|
|
File size: 224 bytes |
Line | |
---|---|
1 | #!/usr/bin/env python |
2 | |
3 | import sys |
4 | from subprocess import Popen, PIPE |
5 | |
6 | cmd = ["git", "status", "--porcelain"] |
7 | p = Popen(cmd, stdout=PIPE) |
8 | output = p.communicate()[0] |
9 | print(output) |
10 | if output == "": |
11 | sys.exit(0) |
12 | sys.exit(1) |
Note: See TracBrowser
for help on using the repository browser.