/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-08-11 15:58:37 UTC
  • mfrom: (7379.1.1 fix-git-subpath)
  • Revision ID: breezy.the.bot@gmail.com-20190811155837-dcw5rg7nqi2g2rct
Properly interpret error message about subpath on github.

Merged from https://code.launchpad.net/~jelmer/brz/fix-git-subpath/+merge/371168

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))