/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

Support user.signingkey configuration variable in .git/config.

Merged from https://code.launchpad.net/~jelmer/brz/local-git-key/+merge/381000

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Support for GitHub."""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
import json
20
22
import os
21
23
 
45
47
from ...errors import InvalidHttpResponse, PermissionDenied
46
48
from ...git.urls import git_url_to_bzr_url
47
49
from ...i18n import gettext
 
50
from ...sixish import PY3
48
51
from ...trace import note
49
52
from ...transport import get_transport
50
53
from ...transport.http import default_user_agent
219
222
 
220
223
 
221
224
def github_url_to_bzr_url(url, branch_name):
 
225
    if not PY3:
 
226
        branch_name = branch_name.encode('utf-8')
222
227
    return git_url_to_bzr_url(url, branch_name)
223
228
 
224
229