/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: 2020-07-28 00:32:38 UTC
  • mfrom: (7490.40.77 work)
  • mto: (7490.40.79 work)
  • mto: This revision was merged to the branch mainline in revision 7521.
  • Revision ID: jelmer@jelmer.uk-20200728003238-vx5u412hn72f18lr
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
    if re.match('(.+) is not a valid repository name',
215
215
                message.splitlines()[0]):
216
216
        return NotBranchError(url, message)
 
217
    if message == (
 
218
            'GitLab: You are not allowed to push code to protected branches '
 
219
            'on this project.'):
 
220
        return PermissionDenied(url, message)
217
221
    m = re.match(r'Permission to ([^ ]+) denied to ([^ ]+)\.', message)
218
222
    if m:
219
223
        return PermissionDenied(m.group(1), 'denied to %s' % m.group(2))