#NEWLINE# def validate_remote( ctx , param , value ) : #NEWLINE# #INDENT# if value : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( remote , branch ) = value . split ( '/' ) #NEWLINE# return ( remote , branch ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise click . BadParameter ( 'remote need to be in format <remote>/<branch>' )