def get_remote_url(git_path, module, dest, remote):
 command = [git_path, 'ls-remote', '--get-url', remote]
 (rc, out, err) = module.run_command(command, cwd=dest)
 if (rc != 0):
  return None
 return to_native(out).rstrip('\n')

def get_remote_url ( git_path , module , dest , remote ) : command = [ git_path , 'ls-remote' , '--get-url' , remote ] ( rc , out , err ) = module . run_command ( command , cwd = dest ) if ( rc != 0 ) : return None return to_native ( out ) . rstrip ( '\n' )
return url of remote source for repo .