/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/plugins/propose/github.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-10-27 18:21:19 UTC
  • mfrom: (7408.2.1 git-branch-escaping)
  • Revision ID: breezy.the.bot@gmail.com-20191027182119-ah6bshqaabi0ddva
Use standard functions for creating Git URLs.

Merged from https://code.launchpad.net/~jelmer/brz/git-branch-escaping/+merge/374756

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
def github_url_to_bzr_url(url, branch_name):
209
209
    if not PY3:
210
210
        branch_name = branch_name.encode('utf-8')
211
 
    return urlutils.join_segment_parameters(
212
 
        git_url_to_bzr_url(url), {"branch": branch_name})
 
211
    return git_url_to_bzr_url(url, branch_name)
213
212
 
214
213
 
215
214
class GitHub(Hoster):