@classmethod<EOL><INDENT>def get_remote_url(cls, location):<DEDENT>
<EOL>stdout = cls.run_command(<EOL>['<STR_LIT>', '<STR_LIT>', r'<STR_LIT>'],<EOL>extra_ok_returncodes=(<NUM_LIT:1>, ), show_stdout=False, cwd=location,<EOL>)<EOL>remotes = stdout.splitlines()<EOL>try:<EOL><INDENT>found_remote = remotes[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>raise RemoteNotFoundError<EOL><DEDENT>for remote in remotes:<EOL><INDENT>if remote.startswith('<STR_LIT>'):<EOL><INDENT>found_remote = remote<EOL>break<EOL><DEDENT><DEDENT>url = found_remote.split('<STR_LIT:U+0020>')[<NUM_LIT:1>]<EOL>return url.strip()<EOL>
Return URL of the first remote encountered.

Raises RemoteNotFoundError if the repository does not have a remote
url configured.