mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 23:26:43 +00:00
15 lines
225 B
Python
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)
|
||
|
|
||
|
|