#NEWLINE# def sync( self , repo , branch = None ) : #NEWLINE# #INDENT# if branch : #NEWLINE# #INDENT# progress = ( 'Syncing %s' % branch ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# progress = 'Syncing' #NEWLINE# #UNINDENT# self . run_async_legit_with_panel ( repo , [ 'sync' , branch ] , repo , 'legit-sync' )