#NEWLINE# def update( self ) : #NEWLINE# #INDENT# self . run ( [ 'remote' , 'set-url' , 'origin' , self . remote_url ] ) #NEWLINE# try : #NEWLINE# #INDENT# self . run ( [ 'fetch' , '--all' , '-p' ] ) #NEWLINE# #UNINDENT# except CommandError as e : #NEWLINE# #INDENT# if ( 'error: cannot lock ref' in e . stderr . lower ( ) ) : #NEWLINE# #INDENT# raise ConcurrentUpdateError ( cmd = e . cmd , retcode = self . retcode , stdout = e . stdout , stderr = e . stderr ) #NEWLINE# #UNINDENT# raise e