add test-git-ignore.py, to port the 'clean' buildbot test to git

add .gitignore to match .darcs-boringfile, mostly
This commit is contained in:
Brian Warner
2012-01-06 16:48:47 -08:00
parent 7f8bbcc155
commit d887782418
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/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)