tahoe-lafs/misc/build_helpers/test-git-ignore.py
Brian Warner d887782418 add test-git-ignore.py, to port the 'clean' buildbot test to git
add .gitignore to match .darcs-boringfile, mostly
2012-01-08 14:12:32 -08:00

15 lines
225 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)