tahoe-lafs/misc/build_helpers/test-git-ignore.py
2019-04-05 11:39:10 +02:00

13 lines
224 B
Python

#!/usr/bin/env python
import sys
from subprocess import Popen, PIPE
cmd = ["git", "status", "--porcelain"]
p = Popen(cmd, stdout=PIPE)
output = p.communicate()[0]
print(output)
if output == "":
sys.exit(0)
sys.exit(1)