#NEWLINE# def run( self ) : #NEWLINE# #INDENT# result = subprocess . check_output ( 'git status -z' , shell = True ) #NEWLINE# for fstat in result . split ( b'\x00' ) : #NEWLINE# #INDENT# if ( not len ( fstat ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# stat = fstat [ 0 : 2 ] #NEWLINE# fn = fstat [ 3 : ] #NEWLINE# if ( stat == b'??' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# raise AssertionError ( ( 'Unexpected git status (%s) for %s' % ( stat , fn ) ) ) #NEWLINE# #UNINDENT# UploadCommand . run ( self )