#NEWLINE# def _get_paths_to_tar( ) : #NEWLINE# #INDENT# p = subprocess . Popen ( 'git ls-files' , stdout = subprocess . PIPE , cwd = from_project_root ( ) , shell = True ) #NEWLINE# returned = set ( ) #NEWLINE# for subpath in p . stdout . readlines ( ) : #NEWLINE# #INDENT# subpath = subpath . decode ( 'UTF-8' ) #NEWLINE# subpath = subpath . strip ( ) #NEWLINE# returned . add ( os . path . dirname ( subpath ) ) #NEWLINE# returned . add ( p ) #NEWLINE# #UNINDENT# if ( 0 != p . wait ( ) ) : #NEWLINE# #INDENT# raise RuntimeError ( 'git ls-files failed' ) #NEWLINE# #UNINDENT# return returned