/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-12-26 14:21:25 UTC
  • mfrom: (7428.1.2 github-perm-denied)
  • Revision ID: breezy.the.bot@gmail.com-20191226142125-cd1y1kyo29ezz2y2
github: Handle 403s for pull request creation.

Merged from https://code.launchpad.net/~jelmer/brz/github-perm-denied/+merge/377117

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
        base_url, _ = urlutils.split_segment_parameters(url)
204
204
        return HeadUpdateFailed(base_url)
205
205
    if message.startswith('access denied or repository not exported:'):
206
 
        extra, path = message.split(': ', 1)
207
 
        return PermissionDenied(path, extra)
 
206
        extra, path = message.split(':', 1)
 
207
        return PermissionDenied(path.strip(), extra)
208
208
    if message.endswith('You are not allowed to push code to this project.'):
209
209
        return PermissionDenied(url, message)
210
210
    if message.endswith(' does not appear to be a git repository'):