/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/remote.py

  • Committer: Jelmer Vernooij
  • Date: 2019-08-06 07:11:09 UTC
  • mto: This revision was merged to the branch mainline in revision 7380.
  • Revision ID: jelmer@jelmer.uk-20190806071109-9hpyx668kg0bsv9k
Handle invalid repository name on GitHub.

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
        return PermissionDenied(url, message)
212
212
    if message.endswith(' does not appear to be a git repository'):
213
213
        return NotBranchError(url, message)
 
214
    if re.match('(.+) is not a valid repository name',
 
215
                message.splitlines()[0]):
 
216
        return NotBranchError(url, message)
214
217
    m = re.match(r'Permission to ([^ ]+) denied to ([^ ]+)\.', message)
215
218
    if m:
216
219
        return PermissionDenied(m.group(1), 'denied to %s' % m.group(2))